https://bilet.intercity.pl/EicServerProxy?service=sklad
&kategoria=IC
&numer=4122
&dataWyjazduPociagu=202307160859
&dataPrzyjazduPociagu=202307161322
&stacjaOd=5100042
&stacjaDo=5100136
&typSkladu=ED161
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @URL("/SaeBus.IIS.AppsApi/Datos") | |
| public interface SaeDatosServiceApi { | |
| @POST("GetLines") | |
| Call<List<SaeLine>> linesList(@Body GetLinesRequest getLinesRequest); | |
| @POST("GetMunicipalities") | |
| Call<List<SaeMunicipality>> municipalitiesList(@Body BaseRequest baseRequest); | |
| @POST("GetZeroTime") | |
| Call<String> nextRestartTime(@Body BaseRequest baseRequest); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Random; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.TimeZone; | |
| public final class SaePermission { | |
| public static final long MILLIS_MARGIN = 300000; | |
| public static final int m_iMultiplier = 131; | |
| private static String date; | |
| private static String key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 50 chlorine + 50 sodium + hotplate = 100 salt | |
| === | |
| # Probital/Libital 1:1 - Brute 37.5/5u - 40u OD | |
| === | |
| 20 carbon + 20 hydrogen + 20 welding fuel = 80 oil | |
| 20 oil + 20 welding fuel + 20 oxygen = 60 acetone | |
| 60 acetone + 60 copper + 60 phosphorus = 180 probital | |
| 60 oil + 60 nitrogen + 60 oxygen = 180 libital |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MAGIC_DELIMITER = 69420 | |
| def serialize_git_pack(args): | |
| git_list = args[0] | |
| for extra in args[1:]: | |
| git_list.append(MAGIC_DELIMITER) | |
| git_list.extend(extra) | |
| res = '' | |
| for arg in git_list: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| needle = b'this.appStateService.isDebugModeEnabled()' | |
| better = b'true/*ppStateService.isDebugModeEnabled*/' | |
| with open('/Applications/Microsoft Teams classic.app/Contents/Resources/app.asar', 'r+b') as f: | |
| x = f.read() | |
| off = x.find(needle) | |
| f.seek(off) | |
| f.write(better) |
running a qemu vm with display and network
qemu-system-x86_64 -cpu host -accel kvm -m 16G -smp 8 -bios /usr/share/OVMF/OVMF.fd -drive format=raw,file=/dev/sda -net nic,model=e1000 -net user -usbdevice tablet -vga qxl -vnc :0
generate boarding pass aztec from scanned pdf417
wl-paste -t image/png | ZXingReader /dev/stdin -bytes | xargs -I{} ZXingWriter -size 800x800 AZTEC {} meow.png
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -eu | |
| # make sure we're root | |
| if [ "$(id -u)" != 0 ]; then | |
| sucmd="su -c" | |
| if command -v doas >/dev/null; then | |
| sucmd="doas" | |
| elif command -v sudo >/dev/null; then | |
| sucmd="sudo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| [ -f APKBUILD ] || ( echo "please run this in a package directory"; exit 1 ) | |
| [ ! -f "$1" ] || ( echo "patch $1 already exists"; exit 1 ) | |
| [ "$1" != "" ] || ( echo "usage: apatch <patch name>"; exit 1 ) | |
| abuild clean fetch unpack prepare | |
| # obtain builddir | |
| . APKBUILD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| export XDG_RUNTIME_DIR=/tmp/run-1000 | |
| mkdir -p $XDG_RUNTIME_DIR | |
| chown patrycja:patrycja $XDG_RUNTIME_DIR | |
| chmod 700 $XDG_RUNTIME_DIR | |
| export MOZ_ENABLE_WAYLAND=1 | |
| export LANG="en_IE.UTF-8" | |
| export QT_QPA_PLATFORM=wayland | |
| export _JAVA_AWT_WM_NONREPARENTING=1 |
NewerOlder