Skip to content

Instantly share code, notes, and snippets.

View truthadjustr's full-sized avatar
☠️
rebirth

truthadjustr

☠️
rebirth
  • Cebu, Philippines
View GitHub Profile
@truthadjustr
truthadjustr / gist:09e21c01f385428775a39f27dca3d728
Created January 15, 2019 02:16
golang url download for arm
https://gist.github.com/simoncos/49463a8b781d63b5fb8a3b666e566bb5
@truthadjustr
truthadjustr / .tmux.conf
Created January 10, 2019 16:49
dot_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
@truthadjustr
truthadjustr / ftp.sh
Created January 10, 2019 16:01
nc file receiver
#!/bin/sh
#
while true;do
f=$(nc -l 14345)
nc -l 14345 > /cygdrive/c/stargate/$f
printf "+"
#sleep 1
find /cygdrive/c/stargate/ -type f -size 0 -exec rm {} \;
done
https://github.com/mame82/P4wnP1/blob/master/setup.cfg#L39
systemctl start ssh.socket
@truthadjustr
truthadjustr / vnc.tips
Last active January 3, 2019 19:02
vnc tips
[linux server]
vncserver
...
vncserver -kill :1
[linux client/cygwin]
vncviewer ipaddr:5901
@truthadjustr
truthadjustr / systemd.tips
Created January 3, 2019 13:26
systemd timesyncd ntp service setting tip
systemctl status systemd-timesyncd
echo 'NTP=time00.ncr.com' >> /etc/systemd/timesyncd.conf
@truthadjustr
truthadjustr / map.cpp
Created January 2, 2019 18:11
c++ map
#include <list>
#include <functional>
using namespace std;
template <typename T, typename U>
list<U> map (function <U(T)> f, list<T> list)
{
if (isEmpty (list))
return empty <U>();
@truthadjustr
truthadjustr / windows_networking_tips
Last active December 21, 2018 12:11
windows networking tips
netsh interface ip show tcpconnections
ssh-keygen -E md5 -lf .ssh/authorized_keys