This file contains hidden or 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 python3 | |
import os, sys, time, json, socket, threading, hashlib, pickle | |
from urllib import request | |
SERVERS = [ | |
"whois.arin.net", | |
"whois.apnic.net", | |
"whois.abuse.net", |
This file contains hidden or 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 | |
which docker > /dev/null || { | |
echo "Docker not found! which is required!" | |
exit 1 | |
} | |
test -z "$1" && { | |
echo "Easy Usage: $0 app-name [port]" 1>&2 | |
docker run --rm -itv "$(pwd):/data" -p 9005:9005 -p ${PORT:-3000}:3000 pvtmert/react |
This file contains hidden or 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
"darkblue | |
"desert | |
"evening | |
"murphy | |
"slate | |
"torte | |
colorscheme slate | |
set ai | |
set autoindent | |
set autoread |
This file contains hidden or 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 python3 | |
import io, re, os, sys, time, json, socket, threading | |
def reader(file): | |
with open("/proc/{}".format(file)) as file: | |
return file.read().split("\n") | |
return [] | |
def generic_parser(file): |
This file contains hidden or 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 python3 | |
import os, re, sys, time, uuid, json, pprint, pathlib, collections, boto3 | |
base_path = "basedir" | |
bucket_id = "yourbucketname" | |
#if not hasattr(re, "Match"): | |
# import _sre | |
# re.Match = _sre.SRE_Match |
This file contains hidden or 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 docker build --compress -t pvtmert/tmux:static -f | |
FROM debian:stable | |
ENV CC clang | |
ENV DIR tmux-repo | |
ENV REPO https://github.com/tmux/tmux.git | |
#VOLUME /data | |
WORKDIR /data |
This file contains hidden or 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 | |
PORT=${PORT:-22} | |
SOCK=${SOCK:-/tmp/$(hostname).sock} | |
ps aux \ | |
| grep -v grep \ | |
| grep ssh \ | |
| grep "$@" \ | |
| grep -qi "$SOCK:0:$PORT" \ | |
|| ssh -vNC \ | |
-oCompression=yes \ |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) { | |
// argv[0]: self | |
// argv[1]: -c, coming from ssh | |
// argv[2]: actual argument | |
// argv[N]: ... |
This file contains hidden or 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
{ | |
"linux": [ | |
"https://pkg.cfssl.org/R1.2/cfssl-bundle_linux-amd64", | |
"https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64", | |
"https://pkg.cfssl.org/R1.2/cfssl-newkey_linux-amd64", | |
"https://pkg.cfssl.org/R1.2/cfssl-scan_linux-amd64", | |
"https://pkg.cfssl.org/R1.2/cfssl_linux-amd64", | |
"https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64", | |
"https://pkg.cfssl.org/R1.2/mkbundle_linux-amd64", | |
"https://pkg.cfssl.org/R1.2/multirootca_linux-amd64" |
This file contains hidden or 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 bash | |
export USERNAME=airflow | |
export DBNAME=${USERNAME} | |
export AIRFLOW_HOME=/data | |
cd "${AIRFLOW_HOME}" | |
start() { | |
echo scheduler webserver | xargs -n1 -P9 -- airflow & |