I hereby claim:
- I am gautamkrishnar on github.
- I am gkrish (https://keybase.io/gkrish) on keybase.
- I have a public key ASA7kdEWVJClHLW8EkVu1aRXGE9Ldn6JuZOrPHEAbpS7CQo
To claim this, I am signing this object:
d="$(date -d -now)" | |
mkdir backup/"$d" | |
cp -r /var/www/html/* backup/"$d" |
< ?php | |
// the message | |
$msg = "First line of textnSecond line of text"; | |
// use wordwrap() if lines are longer than 70 characters | |
$msg = wordwrap($msg,70); | |
// send email | |
mail("someone@example.com","My subject",$msg); | |
? > |
dd bs=4096 conv=noerror,sync if=/dev/sdc1 | gzip -c > img.gz |
//upload code | |
$filename=$_FILE['name']['filename_in_html']; //you can change this with your filename | |
$allowed='png,jpg'; //which file types are allowed seperated by comma | |
$extension_allowed= explode(',', $allowed); | |
$file_extension= pathinfo($filename, PATHINFO_EXTENSION); | |
if(array_search($file_extension, $extension_allowed)) | |
{ | |
echo "$extension_allowed allowed for uploading file"; | |
} |
from nltk.corpus import wordnet #Using Natural language toolkit (http://www.nltk.org/) | |
import codecs | |
def check(str): | |
if not wordnet.synsets(str): | |
return 1 | |
else: | |
return 0 | |
a=0 | |
if __name__ == '__main__': |
import multiprocessing as mp | |
process_list = [] | |
def pr1(test,test1): | |
""" | |
@:param: test,test1 (Integer) | |
process 1 | |
""" | |
print("Pr 1 prining... '"+str(test)+"','"+str(test1)+"' recieved...") |
import threading | |
x=0 #to get a random number | |
killswitch = False # To kill thread after use | |
def threaded_return(que): | |
""" | |
Returning data from thread safely (Returns current value of x) | |
:param que: | |
:return: | |
""" | |
global x |
import requests | |
import threading | |
import os | |
import random | |
pastebinurl = "https://pastebin.com/u/gautamkrishnar" | |
def loaduseragents(): | |
""" | |
Loads the list of user agents from user_agents.txt | |
:return: | |
""" |
I hereby claim:
To claim this, I am signing this object:
#This shell script will find all empty directories and sub-directories in a project folder and creates a .gitkeep file, so that the empty directory | |
#can be added to the git index. | |
find * -type d -empty -exec touch {}/.gitkeep \; |