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
|
||||
|
||||
#testedit
|
||||
|
||||
#unoconv : Convert office documents back and force
|
||||
https://linuxconfig.org/how-to-convert-documents-between-libreoffice-and-microsoft-office-file-formats-on-linux
|
||||
|
||||
|
||||
|
||||
@@ -3,9 +3,12 @@ alias sless='less -S -R'
|
||||
#alias dmcreate='docker-machine create --driver google --google-project crypto-galaxy-182614 --google-zone us-west1-a --google-machine-type f1-micro vm01 ; eval $(docker-machine env vm01)'
|
||||
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 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 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 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"
|
||||
@@ -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_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 locate='locate -i -A'
|
||||
alias mc='source /usr/lib/mc/mc-wrapper.sh'
|
||||
alias evtvd='vd -f csv --skip 5'
|
||||
alias rot13='tr "abcdefghijklmnopqrstuvwxyz" "nopqrstuvwxyzabcdefghijklm"'
|
||||
alias uniq2='awk '"'"'{a[$0]++; if (a[$0]==1) print $0 }'"'"
|
||||
@@ -37,4 +42,4 @@ function docker_killall() { docker rm $(docker stop $(docker ps -a -q --filter a
|
||||
function dockertags() { tags=`wget -q https://registry.hub.docker.com/v1/repositories/${1}/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'`; if [ -n "$2" ] ; then tags=` echo "${tags}" | grep "$2" `; fi ; echo "${tags}" ; }
|
||||
alias pip='pip3'
|
||||
alias python='python3'
|
||||
alias usbb="usbguard list-devices -b"
|
||||
alias usbb="usbguard list-devices -b"
|
||||
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