This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import psutil | |
l_proc_list = psutil.get_process_list() | |
for i in l_proc_list: | |
if i.name == 'waflz_server': | |
print("FOUND WAFLZ_SERVER") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
env GOOS=linux GOARCH=arm64 GOARM=7 go build main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@arch-lt ~> | |
@arch-lt ~> | |
@arch-lt ~> | |
@arch-lt ~> curl -svo time /dev/null http://mintz5.com --doh-url https://faas.eb.vdms.com/showard/doh | |
* Found bundle for host faas.eb.vdms.com: 0x562377afc3f0 [serially] | |
* Server doesn't support multi-use (yet) | |
* Trying 152.195.122.71... | |
* TCP_NODELAY set | |
* Hostname 'faas.eb.vdms.com' was found in DNS cache | |
* Trying 152.195.122.71... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chromium --headless --disable-gpu --screenshot --window-size=1280,1696 http://google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################### | |
# Dirty script to get bash installed (like on fresh vm) # | |
######################################################### | |
wget https://github.com/sharkdp/bat/releases/download/v0.9.0/bat-musl_0.9.0_amd64.deb | |
dpkg -i bat-musl_0.9.0_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
emacs_url='http://ftp.wayne.edu/gnu/emacs/emacs-25.3.tar.xz' | |
echo "Downloading tar from $emacs_url" | |
apt install libncurses5-dev/xenial -y | |
cd /tmp | |
curl -s "$emacs_url" -o emacs-25.3.tar.xz | |
tar -xvf emacs-25.3.tar.xz | |
cd emacs-25.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turn on exe on file | |
svn propset svn:executable on | |
# Turn off exe on file | |
svn propdel -R svn:executable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl https://raw.githubusercontent.com/R4wm/elastic_kjv/master/data/esBulk.json -o /tmp/kjv_es_bulk_payload.json | |
curl -XPOST -H"Content-Type: application/json" http://localhost:9200/bible/_bulk --data-binary @/tmp/kjv_es_bulk_payload.json | |
curl http://localhost:9200/_cat/indices?v | |
curl -XPUT http://localhost:9200/bible/_settings -H"content-type: application/json" -d '{"number_of_replicas": 0}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lfs chroot) I have no name!:/# whoami | |
root | |
(lfs chroot) I have no name!:/# which | |
bash: which: command not found | |
(lfs chroot) I have no name!:/# find . -iname "whoami" -print | |
./tools/bin/whoami | |
./tools/lib/bash/whoami | |
(lfs chroot) I have no name!:/# file ./tools/bin/whoami | |
./tools/bin/whoami: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /tools/lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped | |
(lfs chroot) I have no name!:/# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func main() { | |
fmt.Println("start main") |