Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Working from home

Gautam krishna R gautamkrishnar

💻
Working from home
View GitHub Profile
View keybase.md

Keybase proof

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:

@gautamkrishnar
gautamkrishnar / pinger.py
Created Jul 30, 2017
A python script to increase the views of your pastebin profile. See the results: https://pastebin.com/u/gautamkrishnar
View pinger.py
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:
"""
@gautamkrishnar
gautamkrishnar / lib.py
Created Jul 13, 2017
A simple python thread based random number generator
View lib.py
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
@gautamkrishnar
gautamkrishnar / multiprocessing.py
Created Jul 12, 2017
simple program to do python multiprocessing
View multiprocessing.py
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...")
@gautamkrishnar
gautamkrishnar / english-words.py
Created Dec 27, 2016
Script to generate a coma seporated file(.csv) from a given input file with normal english words and unicode characters...
View english-words.py
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__':
View sri.go
package sri
import (
"crypto/sha256"
"encoding/base64"
"fmt"
"io/ioutil"
)
func Generate256(file string) (string, error) {
@gautamkrishnar
gautamkrishnar / get_sources.sh
Created Jun 18, 2016
(linux from scratch) LFS 7.9 Get all required sources bash script
View get_sources.sh
wget http://download.savannah.gnu.org/releases/acl/acl-2.2.52.src.tar.gz
wget http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz
wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.xz
wget http://ftp.gnu.org/gnu/bash/bash-4.3.30.tar.gz
wget http://alpha.gnu.org/gnu/bc/bc-1.06.95.tar.bz2
wget http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.bz2
wget http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.xz
wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
wget http://sourceforge.net/projects/check/files/check/0.10.0/check-0.10.0.tar.gz
View contributing.md

Contributing

There are hundreds of programming languages out there. The aim of this project is to make the Try catch Stack Overflow available in all the programing languages under the globe. You can contribute to the project by:

Adding a new language

You can make this project available in your favorite programming language. Just follow the steps below:

  1. Fork it!
  2. Make a local clone:
@gautamkrishnar
gautamkrishnar / cd-virus.bat
Created May 4, 2016
Pop out the CD Drive continuously
View cd-virus.bat
Set oWMP = CreateObject(“WMPlayer.OCX.7?)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
@gautamkrishnar
gautamkrishnar / add-all-empty-directory-git.sh
Last active Jun 28, 2019
Add all empty directories to github
View add-all-empty-directory-git.sh
#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 \;
You can’t perform that action at this time.