Skip to content

Instantly share code, notes, and snippets.

View virtadpt's full-sized avatar
💭
First thing that Microsoft does when buying Github: Add statuses. Whee.

The Doctor virtadpt

💭
First thing that Microsoft does when buying Github: Add statuses. Whee.
View GitHub Profile
# please read every steps as this is not an automated script
# tested on LXC alpine 3.12
# 2.3.8 compatible only with php 7.2 (alpine 3.9)
vi /etc/apk/repositories # change to 3.9
# update and install
apk update && apk add php php-dom php-simplexml php-json php-gd php-mbstring php-xml php-tidy php-iconv php-curl php-gettext php-tokenizer php-bcmath php-intl php-session php-fpm php-pdo_mysql mariadb mariadb-client nginx iproute2
# start at boot
@virtadpt
virtadpt / example.py
Created July 13, 2020 02:27 — forked from mjkillough/example.py
MicroPython Feather HUZZAH FeatherWing OLED
# https://github.com/adafruit/micropython-adafruit-ssd1306/blob/master/ssd1306.py
# https://learn.adafruit.com/micropython-hardware-ssd1306-oled-display/micropython
import machine
import ssd1306
i2c = machine.I2C(-1, machine.Pin(5), machine.Pin(4))
oled = ssd1306.SSD1306_I2C(128, 32, i2c)
oled.fill(1)
oled.show()
BEGIN MESSAGE.
wzjWtKaKMe2lyYd X7dwCyl2VFA0uET FwYytrXodN8D02C yEQ2KS6iBITdneQ
Ae6PABxaMpGEhFQ ini1WeoLnsrTCKq 6Xr2MZHgg7F909n yzLLB7bVl3TnwTv
cbnWJRyoGQqS0pf 6JW1x33VTKGJQ4M p6CxoNmZRTXVrMp NwFkWHKDNpld8nO
WI1LnsNCmEzUWYB LpbzpCWIpzu9678 i35zp0Qz5Z.
END MESSAGE.
@virtadpt
virtadpt / nginx config for icecast2
Created April 20, 2020 00:35 — forked from highgain86j/nginx config for icecast2
nginx configuration for reverse-proxying icecast2 streaming server.
server {
listen 80;
listen [::]:80;
server_name radio.example.com;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
location / {
@virtadpt
virtadpt / gps.xhtml
Created November 18, 2019 23:51 — forked from Arttumiro/gps.xhtml
PAW-gps Mobile code+application
Originally from: https://raw.githubusercontent.com/systemik/pwnagotchi-bt-tether/master/GPS-via-PAW
Systemik made the original code and shaynemk on the pwnagotchi boards added timestamps, altitude, and satellites to the code
You can follow the original guide if you want, this one is just using a bit different code and is typed out a bit better
This is just the android part of the whole guide but the rest can be found here https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android
And just so everyone knows, me (Arttumiro) didnt do anything coding related at all, i just changed up the guide a bit and made it easier to follow.
======================================================================================
Site of the app I use : http://paw-android.fun2code.de (It needs a lot of permissions but it will not do anything automatically)
Dont worry about incompatibility warnings, the gps code should still work even with that.

"POOR BILL"
2019-Nov-07

@teddyschleifer wrote:

"Bill Gates on a wealth tax:

'I've paid over $10 billion in taxes. I've paid more than anyone in taxes. If I had to pay $20 billion, it's fine.'

'But when you say I should pay $100 billion, then I'm starting to do a little math over what I have left over.'"

@virtadpt
virtadpt / links.json
Created August 6, 2019 01:21 — forked from max-mapper/links.json
all wikipedia zim torrent links
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@virtadpt
virtadpt / arch-linux-install.md
Created February 28, 2019 00:39 — forked from kylemanna/arch-linux-install.md
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
@virtadpt
virtadpt / arch-linux-install
Created February 19, 2019 22:45 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap