Skip to content

Instantly share code, notes, and snippets.

View typelogic's full-sized avatar
🏹

typelogic typelogic

🏹
View GitHub Profile
@typelogic
typelogic / gist:7b2a2351410c2b5fc263bb608837374e
Created February 8, 2019 20:30
golang latest downloads archs
https://storage.googleapis.com/golang
@typelogic
typelogic / poco
Created February 9, 2019 09:13
poco make install
pi@c24:~/poco-1.9.0 $ sudo make install
make -C /home/pi/poco-1.9.0/Foundation
make[1]: Entering directory '/home/pi/poco-1.9.0/Foundation'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/poco-1.9.0/Foundation'
make -C /home/pi/poco-1.9.0/Encodings
make[1]: Entering directory '/home/pi/poco-1.9.0/Encodings'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/poco-1.9.0/Encodings'
make -C /home/pi/poco-1.9.0/XML
@typelogic
typelogic / passwd-sha512.c
Created February 9, 2019 16:21
snippet: crypt
//#define _XOPEN_SOURCE
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <unistd.h>
#include <crypt.h>
int main(int argc, char *argv[]) {
if ( argc < 3 || (int) strlen(argv[2]) > 16 ) {
@typelogic
typelogic / rpi0w.usb.setup
Created February 9, 2019 20:02
rpi0w OTG mode
raspbian jessie img
[config.txt]
dtoverlay=dwc2
[cmdline.txt]
rootwait modules-load=dwc2,g_ether
touch ssh
ping raspberry.local
@typelogic
typelogic / kali.hash
Created February 9, 2019 20:11
crypt password hash
openssl passwd -crypt -salt X0 toor
```python
import crypt
crypt.crypt('toor','X0')
```
@typelogic
typelogic / gist:4dcdc3657524ead72c2166f390f14133
Created February 10, 2019 11:48
manually run wpa_supplicant
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
hostapd /etc/hostapd/hostapd.conf
nix-shell -p ncurses
@typelogic
typelogic / interfaces.ap
Last active February 10, 2019 22:48
dnsmasq and not dhcpcd
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
# source-directory /etc/network/interfaces.d
# I dunno what's the purpose of these settings anymore
#auto br0
@typelogic
typelogic / gist:03c2b2fc8c8c78cbca1cc1c1f69245a1
Created February 11, 2019 07:41
golang releases downloads url
https://storage.googleapis.com/golang