I hereby claim:
- I am loneicewolf on github.
- I am william_martens (https://keybase.io/william_martens) on keybase.
- I have a public key ASAumSUfA1B43Z59IREVGt0bXq5NsKGgk5zb93pLhCfY8wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import string | |
def find_position(char): | |
for set_num in range(len(table)): | |
if char in table[set_num]: | |
return set_num | |
return False | |
def forge_offsets(key, direction, offset): | |
if type(key) is str: |
#!/usr/bin/env bash | |
## https://stackoverflow.com/questions/10376206/what-is-the-preferred-bash-shebang | |
echo -e "THIS program: $0\n" | |
## cases.sh | |
# if $# (num. of inputs) is NOT(!) EQUALS TO(=) (so, !=) 2; print "argc IS NOT 2, ..." | |
if [ $# != 2 ]; then | |
echo "argc IS NOT 2, enter IP and PORT" | |
else |
for i in {1..3} | |
do | |
echo $i | |
export m1="msg 1" | |
export m2="msg 2" | |
export m3="msg 3" | |
case $i in | |
1) echo "$m1";; |
Made this in my free time on a break as 'addons' to both my ARCH-PCI-PASSTROUGH guide, as well as to my OSCP Certification (and, to be part in any upcomming work/projects I will do in this kind of field)
hdparm -I /dev/sda
hdparm -I /dev/sdb
hdparm -I /dev/(some other disk(s))
## edit: this was only called "colors in bash" but I renamed it to include more "general" or "overall" effects, | |
## such as; popups(zenity, notify-send, ..) and (soon coming!) ncurses, etc. | |
# might be some errors (not only grammar) | |
# red=31 | |
# green=32 | |
# blue=34 | |
# yellow=33 | |
# cyan=36 | |
# pink=35 |
<details>
<summary> ${1:Click to Expand HEADER } </summary>
${2:ENTER CONTENTS}
</details>
#### <details><summary> ${1:Click to Expand HEADER } </summary>${2:ENTER CONTENTS}</details>
// i686-w64-mingw32-gcc -o M msgbox.c | |
#include <stdio.h> | |
#include <windows.h> | |
int main(int argc, char *argv[]){ | |
if(argc != 3){ | |
printf("usage: %s MESSAGE TITLE",argv[0]); | |
} | |
// MessageBox function (winuser.h) | |
// Displays a modal dialog box that contains | |
// a system icon, |
# From Adam Liss's comment | |
# https://stackoverflow.com/a/9387914/14346786 | |
# Read a file using a bash script | |
i=0;while read l;do ((i=i+1));echo "$i:$l";done < file.txt | |
# alphabet | |
az=$(echo {a..z} | tr -d ' \n\t\v') | |