Skip to content

Instantly share code, notes, and snippets.

💭
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.
Block or report user

Report or block virtadpt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@virtadpt
virtadpt / gps.xhtml
Created Nov 18, 2019 — forked from Arttumiro/gps.xhtml
PAW-gps Mobile code+application
View gps.xhtml
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.
View poorbill.md

"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 Aug 6, 2019 — forked from maxogden/links.json
all wikipedia zim torrent links
View links.json
View noscript-tracking.go
// 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 Feb 28, 2019 — 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
View arch-linux-install.md
@virtadpt
virtadpt / arch-linux-install
Created Feb 19, 2019 — 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
View arch-linux-install
# 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
@virtadpt
virtadpt / email_parse_url.py
Created Jan 21, 2019 — forked from aptgetupgrade/email_parse_url.py
code to poll emails from an IMAP email server and post these to wallabag
View email_parse_url.py
# Read email in inbox, look for any URLs and update them to wallabag, delete email if URLs found in it.
# Built from various internet sources. Final code donated under GPL v3 by Github user aptgetupgrade
# Tested using python 2. Could be run as part of a crontab, e.g. every 5 mins.
#
import sys
import imaplib
import getpass
import email
import email.header
import datetime
@virtadpt
virtadpt / README.md
Created Jan 7, 2019 — forked from grantland/README.md
NextBus API
View README.md
@virtadpt
virtadpt / gist:16db06cb09c9e16c513ecfff9147026a
Created Dec 8, 2018 — forked from datagrok/gist:2199506
Virtualenv's `bin/activate` is Doing It Wrong
View gist:16db06cb09c9e16c513ecfff9147026a

Virtualenv's bin/activate is Doing It Wrong

I'm a Python programmer and frequently work with the excellent [virtualenv][] tool by Ian Bicking.

Virtualenv is a great tool on the whole but there is one glaring problem: the activate script that virtualenv provides as a convenience to enable its functionality requires you to source it with your shell to invoke it. The activate script sets some environment variables in your current environment and defines for you a deactivate shell function which will (attempt to) help you to undo those changes later.

This pattern is abhorrently wrong and un-unix-y. activate should instead do what ssh-agent does, and launch a sub-shell or sub-command with a modified environment.

Problems

@virtadpt
virtadpt / Instructions.txt
Created Dec 7, 2018 — forked from NotMedic/Instructions.txt
Siri -> HomeBridge -> HomeBridge-ssh -> iptables
View Instructions.txt
This is a pretty simple setup:
Siri is used to control Homebridge using the HomeKit protocol.
Homebridge has a module named Homebridge-ssh that allows you to run commands over ssh.
There is a shell script on an OpenWrt box to enable, disable, and check the status of a MAC Address block in the FORWARD table.
1. Install node on your platform. I went with 8.9 for no specific reason other than I initially had issues with 10 that probably weren't related..
2. Install homebridge and homebridge-ssh. You should probably also put hombridge-config-ui-x on there too... I used the unsafe-perm parameter after getting a significant number of errors:
sudo -i npm install -g homebridge --unsafe-perm
sudo -i npm install -g homebridge-ssh --unsafe-perm
You can’t perform that action at this time.