Skip to content

Instantly share code, notes, and snippets.

View typelogic's full-sized avatar
🏹

typelogic typelogic

🏹
View GitHub Profile
@typelogic
typelogic / mygist.log
Created January 30, 2019 09:23
summary
[js object]
var EXAMPLE = {
foo: 'hello',
hello: 42,
payload: new Buffer('a'),
meh: {
b: {
tmp: {
baz: 1000
@typelogic
typelogic / linux
Created January 30, 2019 16:10
mount tmpfs
mount -t tmpfs -o mand,size=1m tmpfs /home/guest/dir/
mount -oremount,mand /home/guest/dir/
@typelogic
typelogic / gist:7aa96feaa432ef70d2fa419ed4e734e2
Created January 30, 2019 16:14
chmod for mandatory locking to work
chmod g+s,g-x lockthese*
@typelogic
typelogic / kali.wireless
Created February 3, 2019 05:02
wifi info
panda PAU05
atheros AR9271
ralink RT3070
ralink RT3572
realtek AR8812
TP-LINK TLWN722N v1.0
alfa AWUS036NHA
realtek AR8812AU
alfa AWUS036ACH
@typelogic
typelogic / asix
Created February 5, 2019 06:38
usb2ethernet asix
Bus 001 Device 005: ID 0b95:7720 ASIX Electronics Corp. AX88772
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0b95 ASIX Electronics Corp.
@typelogic
typelogic / network.config
Created February 5, 2019 06:52
rpi network setup
[/etc/network/interfaces]
auto lo
iface lo inet loopback
#auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface home inet dhcp
iface mobile inet dhcp
@typelogic
typelogic / git.fix
Created February 5, 2019 15:22
git fix
git gc --prune=now
git remote prune origin
@typelogic
typelogic / gist:f4197e22cbd6d5140d13726f87ef75f6
Created February 5, 2019 16:57
get connected wifi ssid
iwgetid -r
iw dev wlan0 link
@typelogic
typelogic / gist:7be9371b07c646df5e04fe81afdc0ed0
Created February 5, 2019 17:32
get ssid of connected wifi
iwconfig | grep wlan0