Reorganise gists folder
This commit is contained in:
18
codegrab/screen2.js
Normal file
18
codegrab/screen2.js
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
var page = require('webpage').create(),
|
||||||
|
url = 'https://mobile.twitter.com/carlomasala1/status/1490645423257706498',
|
||||||
|
w = 1920,
|
||||||
|
h = 8000
|
||||||
|
|
||||||
|
page.viewportSize = { width: w, height: h }
|
||||||
|
page.open(url, function(status) {
|
||||||
|
if (status !== 'success') {
|
||||||
|
console.log('Unable to load url: ' + url)
|
||||||
|
} else {
|
||||||
|
window.setTimeout(function() {
|
||||||
|
page.clipRect = { top: 0, left: 0, width: w, height: h }
|
||||||
|
page.render('img.png')
|
||||||
|
phantom.exit()
|
||||||
|
}, 20000)
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -15,3 +15,9 @@ primes 1 100 |gnuplot -p -e 'plot "/dev/stdin"'
|
|||||||
unshare -r -n w3m
|
unshare -r -n w3m
|
||||||
|
|
||||||
#testedit
|
#testedit
|
||||||
|
|
||||||
|
#unoconv : Convert office documents back and force
|
||||||
|
https://linuxconfig.org/how-to-convert-documents-between-libreoffice-and-microsoft-office-file-formats-on-linux
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -4,8 +4,11 @@ alias sless='less -S -R'
|
|||||||
alias dockerstatus="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock moncho/dry"
|
alias dockerstatus="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock moncho/dry"
|
||||||
alias dockerip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"
|
alias dockerip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"
|
||||||
alias drit='docker run -i -t --rm '
|
alias drit='docker run -i -t --rm '
|
||||||
|
alias dritn='docker run -i -t --rm --network=none'
|
||||||
alias dritpw='docker run -i -t --rm -v "$(mktemp -d):/output" -v "$(pwd)":/data'
|
alias dritpw='docker run -i -t --rm -v "$(mktemp -d):/output" -v "$(pwd)":/data'
|
||||||
alias dritpwro='docker run -i -t --rm -v "$(mktemp -d):/output" -v "$(pwd)":/data:ro'
|
alias dritpwro='docker run -i -t --rm -v "$(mktemp -d):/output" -v "$(pwd)":/data:ro'
|
||||||
|
alias dritpwn='docker run -i -t --rm --network=none -v "$(mktemp -d):/output" -v "$(pwd)":/data'
|
||||||
|
alias dritpwron='docker run -i -t --rm --network=none -v "$(mktemp -d):/output" -v "$(pwd)":/data:ro'
|
||||||
alias kali='docker run --rm -it -v ${workdir-`pwd`}:/root/workdir kalilinux/kali-rolling'
|
alias kali='docker run --rm -it -v ${workdir-`pwd`}:/root/workdir kalilinux/kali-rolling'
|
||||||
alias lazydocker="docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /opt/lazydocker:/.config/jesseduffield/lazydocker lazyteam/lazydocker"
|
alias lazydocker="docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /opt/lazydocker:/.config/jesseduffield/lazydocker lazyteam/lazydocker"
|
||||||
alias mv="mv -vi"
|
alias mv="mv -vi"
|
||||||
@@ -25,6 +28,8 @@ alias remnux_rekall='docker run --rm -it -p 8000:8000 --dns=192.168.130.1 -v ${w
|
|||||||
alias remnux_thug='sudo docker run --rm -it --dns=192.168.130.1 -v /var/log/docker/thug_logs:/home/thug/logs remnux/thug ./thug.py -F '
|
alias remnux_thug='sudo docker run --rm -it --dns=192.168.130.1 -v /var/log/docker/thug_logs:/home/thug/logs remnux/thug ./thug.py -F '
|
||||||
alias remnux_viper='docker run --rm -it --dns=192.168.130.1 -v ${workdir-`pwd`}:/home/nonroot/workdir remnux/viper bash'
|
alias remnux_viper='docker run --rm -it --dns=192.168.130.1 -v ${workdir-`pwd`}:/home/nonroot/workdir remnux/viper bash'
|
||||||
alias remnux_vol='docker run --rm -it -v ${workdir-`pwd`}:/home/nonroot/memdumps remnux/volatility bash'
|
alias remnux_vol='docker run --rm -it -v ${workdir-`pwd`}:/home/nonroot/memdumps remnux/volatility bash'
|
||||||
|
alias locate='locate -i -A'
|
||||||
|
alias mc='source /usr/lib/mc/mc-wrapper.sh'
|
||||||
alias evtvd='vd -f csv --skip 5'
|
alias evtvd='vd -f csv --skip 5'
|
||||||
alias rot13='tr "abcdefghijklmnopqrstuvwxyz" "nopqrstuvwxyzabcdefghijklm"'
|
alias rot13='tr "abcdefghijklmnopqrstuvwxyz" "nopqrstuvwxyzabcdefghijklm"'
|
||||||
alias uniq2='awk '"'"'{a[$0]++; if (a[$0]==1) print $0 }'"'"
|
alias uniq2='awk '"'"'{a[$0]++; if (a[$0]==1) print $0 }'"'"
|
||||||
16
config/zupdate.sh
Normal file
16
config/zupdate.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
[[ -s /home/tke/.bashrc ]] && source /home/tke/.bashrc
|
||||||
|
[[ -f ~/.config/z.sh ]] && . ~/.config/z.sh
|
||||||
|
|
||||||
|
echo $$ >> /tmp/zupdate.log
|
||||||
|
env >> /tmp/zupdate.log
|
||||||
|
id >> /tmp/zupdate.log
|
||||||
|
cd
|
||||||
|
echo $(pwd) >> /tmp/zupdate.log
|
||||||
|
while true ;
|
||||||
|
do
|
||||||
|
newfolder=$(inotifywait -e create /media/data/cases/ | awk '{print $1 $3}')
|
||||||
|
echo "$$ Detected ${newfolder}" >> /tmp/zupdate.log
|
||||||
|
z --add "${newfolder}"
|
||||||
|
done
|
||||||
|
|
||||||
18
read.py
18
read.py
@@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
import fileinput
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
|
|
||||||
files=set()
|
|
||||||
for param in sys.argv[1:]:
|
|
||||||
if os.path.isfile(str(param)):
|
|
||||||
# print(param,"is file")
|
|
||||||
files.add(param)
|
|
||||||
# else:
|
|
||||||
# print(param,"NOT a file")
|
|
||||||
|
|
||||||
|
|
||||||
print("all files:", files)
|
|
||||||
files.add("-")
|
|
||||||
for line in fileinput.input(files if len(files)>0 else "-"):
|
|
||||||
print(fileinput.filename(),":",line)
|
|
||||||
16
tools/concat.py
Normal file
16
tools/concat.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
#concats all files and stdin given as arguments and prepends output with filenames
|
||||||
|
import fileinput
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
#remove all non regular files
|
||||||
|
sys.argv = [f for f in sys.argv if os.path.isfile(f)]
|
||||||
|
|
||||||
|
# if stdin has data add stdin to filelist
|
||||||
|
if not sys.stdin.isatty():
|
||||||
|
sys.argv.append("-")
|
||||||
|
|
||||||
|
# concat all lines from all files
|
||||||
|
for line in fileinput.input():
|
||||||
|
print(f'{fileinput.filename()}:{line.strip()}')
|
||||||
Reference in New Issue
Block a user