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/python3 | |
# -*- coding: utf-8 -*- | |
from pathlib import Path | |
from typing import List, FrozenSet | |
from semgrep.config_resolver import resolve_targets | |
from semgrep.semgrep_types import Language | |
from semgrep import target_manager | |
TM = target_manager.TargetManager |
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 | |
if [ -z "$GOInstallDir" ] ; then | |
#echo ${BASH_SOURCE[0]} | |
GOInstallDir="$(dirname "$(readlink -f "$0")")" | |
fi | |
if [[ "$1" =~ (^$|-h) ]] ; then | |
echo "Usage: $(basename "$0") [-h] <version>" | |
echo "Example usage: $(basename "$0") 1.10" |
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
### Keybase proof | |
I hereby claim: | |
* I am killedkenny on github. | |
* I am killedkenny (https://keybase.io/killedkenny) on keybase. | |
* I have a public key ASAHJXCNWHvlFMj6FpsZiizDKpE7_G2i7V1veVM95M6eLAo | |
To claim this, I am signing this object: |
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
def db(a=None,b=None, x={}): | |
if b: | |
x[a]=b | |
return x[a] | |
print (db("test","qqq")) | |
print (db("test")) |
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/sh | |
sed -e ':a;s/^[ \t\r\n]\+//;/^,\|^:\|^+\|^-\|^\.\|^e\|^\[\|^\]\|^}\|^{/{/^\]\|^}\|^{/{x;/[^ ]/{p;s/\( *\)\(.*\)/\1/};x};H;x;/^\n/ {s/\(.\)\(.\)\(.*\)/\2/};/^\n/ ! {s/\([^\n]*\)\(\n*\)\(.\)\(.*\)/\1\3/};s/\n//g;x;/^\]\|^}/{x;s/^ //;x};/^,\|^\[\|^\]\|^}\|^{/{x;p;s/\( *\)\(.*\)/\1/;x};/^\[\|^{/{x;s/^/ /;x};s/.//;ba};/^"/{H;x;:b;s/\([^\n]*\)\(\n\)\(.*\)\(\\"\)\(.*\)/\1\2\3\n\5/;tb;s/\([^\n]*\)\(\n\)\("[^"]*"\)\(.*\)/\1\o033[32m\3\o033[0m/;s/\n/\\"/g;x;:c;/^""/{s/""//;ba};s/^\("\)\(\\"\|.\)/\1/;tc;ba};/^[0-9]/{H;x;s/\([^\n]*\)\(\n\)\([0-9]\+\)\(.*\)/\1\o033[95m\3\o033[0m/;x;s/^[0-9]\+//;ba};/^true\|^false\|^null/{H;x;s/\([^\n]*\)\(\n\)\(true\|false\|null\+\)\(.*\)/\1\o033[96m\3\o033[0m/;x;s/^true\|^false\|^null//;ba};${p};d' |