Skip to content

Instantly share code, notes, and snippets.

View typelogic's full-sized avatar
🏹

typelogic typelogic

🏹
View GitHub Profile
@typelogic
typelogic / samba
Last active February 11, 2019 08:49
linux windows share
sudo apt-get install smbclient cifs-utils
sudo mkdir /share/
sudo mount -t cifs -o username=john,password=pass123 //somehostname/public/ /share
# or
smbclient //somehostname/public -U john
get testfile.txt
@typelogic
typelogic / gist:b5bd0ede920032d0c4e7dda496780582
Created February 6, 2019 12:25
list windows shared folder in dos
net share
@typelogic
typelogic / gist:e8a9da63be3933920fef23587efd7d42
Created February 6, 2019 12:26
vagrant mount shared folder
sudo mount -t vboxsf shareNameHere /mnt/
@typelogic
typelogic / gist:ad8c70208e24fde7e9178eec37328342
Created February 6, 2019 12:31
configure git on Windows to properly handle line endings
git config --global core.autocrlf true
netstat -p TCP -nofat
@typelogic
typelogic / gist:4c94212decf0699833c893765b55994c
Created February 7, 2019 16:47
manual poco c++ compile stuff
g++ -o WebSocketServer WebSocketServer.cpp -lPocoFoundation -lPocoNet -lPocoUtil -I/usr/include/Poco
@typelogic
typelogic / .tmux.conf
Created February 8, 2019 11:23
.tmux.conf
#set-environment -g CHERE_INVOKING 1
set -g display-panes-time 5000
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
set -g status-bg black
set -g status-fg white
@typelogic
typelogic / 20190208T213817
Created February 8, 2019 13:40
hostapd error
root@sysbox0:~# hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr 5e:f9:79:c5:d0:ee and ssid "clinica"
random: Only 16/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
Failed to set beacon parameters
wlan0: Could not connect to kernel driver
@typelogic
typelogic / gist:dd90848a022a83fd4abdd29255429adc
Created February 8, 2019 15:14
linux know network driver
ethtool -i wlan0 | grep driver
wget -q https://git.io/voEUQ -O /tmp/raspap && bash /tmp/raspap