I bought a Anko Mini Label Thermal Printer (seo: JLR-80657 F004226) from kmart, and wanted to be able to print barcodes with it. The recommended app, AumiLabel, was underwhelming and I haven't yet figured out how to change the value of a barcode being printed. I tried to pair it with Bluetooth to my NixOS laptop, but it did not stay connected, probably due to lack of drivers. I used logcat to dump what AumiLabel is doing, fortunately it seems to show all kinds of otherwise secret values in debug logs, as I've noticed before when I did the same thing with another cheap device's proprietary app. I hope to use this information to further decipher how this device works, with the end goal of having a driver for Linux that can print barcodes with this device.
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
| # doesn't parse correctly yet | |
| # example save: https://s3.aly.pet/deltarune.sav | |
| import struct | |
| def shift(lst, n, parse=False): | |
| out = [] | |
| for _ in range(0,n): | |
| out.append(lst.pop(0)) | |
| if parse: | |
| return [int(_,16) for _ in out] |
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
| blueprint: | |
| name: Send a camera snapshot when motion is detected | |
| description: > | |
| This automation blueprint creates a camera snapshot if motion is detected | |
| and sends a notification to your phone with the picture. | |
| based on https://community.home-assistant.io/t/send-camera-snapshot-notification-on-motion/254565 | |
| domain: automation | |
| input: | |
| motion_sensor: | |
| name: Motion sensor |
Dedicated Server API consists of two separate endpoints, both operating on the same port as the game server, which is normally 7777. If the server port is changed (through Engine.ini configuration file, or through -Port= command line argument), the API will listen on the specified port instead.
Dedicated Server API endpoints:
- Dedicated Server Lightweight Query API is a simple UDP protocol designed for polling the server state through UDP continuously with minimal overhead.
- Dedicated Server HTTPS API is a HTTPS server serving the requests to retrieve the more detailed state of the server, and control it's behavior.
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/bash | |
| # mkdist.sh | |
| apt update; apt install -y jq libfuse2 wget file | |
| wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | |
| chmod +x *.AppImage | |
| mkdir discord | |
| cd discord | |
| wget https://discord.com/api/download\?platform\=linux\&format\=tar.gz | |
| mv * discord.tar.gz | |
| tar -xf discord.tar.gz |
I hereby claim:
- I am alyssadev on github.
- I am alyssile (https://keybase.io/alyssile) on keybase.
- I have a public key whose fingerprint is 4304 1865 9397 3CC0 FBF0 A109 F4D2 C7A4 26DD A1BD
To claim this, I am signing this object:
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
| #!/usr/bin/env python3 | |
| # usage: fedipost.py jsonfeed_url webhook_url [filter_text] | |
| # e.g: fedipost.py https://blahaj.zone/@alypet.json webhook #alyblog | |
| from markdownify import markdownify | |
| from requests import get,post | |
| import os, sys | |
| WH = sys.argv[2] | |
| try: |
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
| /** @param {NS} ns */ | |
| // script to be run after each augment to recover hack level and money | |
| // 1. run scan.js, backdoor n00dles and foodnstuff using the links provided | |
| // 2. run this script, starts hacking those servers | |
| // 3. once you have 200k, go to aevum, then run alain/casino.js | |
| // 3a. go to tech store, buy darkweb, connect darkweb, buy -a | |
| // 4. run scan.js, nuke and backdoor all available servers | |
| // 5. run purchase.js, update with higher ram allowance (32>2048) if you have enough money | |
| // * run delete-pserv.js if there's an issue with buying the servers | |
| // 6. run init.js, this will boot up stockmaster and stats, as well as starting the hack scripts running across all pservs and home |
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/bash -x | |
| # curl s.aly.pet/ssh-setup | GIT_HOSTNAME=dotfiles.example.com GIT_USERNAME=you GIT_PASSWORD=password bash -x | |
| if [ -z $GIT_HOSTNAME ]; then | |
| echo -n "Git hostname: " | |
| read -s GIT_HOSTNAME | |
| fi | |
| if [ -z $GIT_USERNAME ]; then | |
| echo -n "Git username: " | |
| read -s GIT_USERNAME | |
| fi |
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
| # authelia/config/configuration.yml | |
| # run `openssl rand -hex 20` three times and update `jwt_secret`, `session.secret` and `storage.encryption_key` | |
| server: | |
| host: 0.0.0.0 | |
| port: 9091 | |
| log: | |
| level: info | |
| jwt_secret: TODO | |
| default_redirection_url: https://auth.example.com | |
| totp: |
NewerOlder