Skip to content

Instantly share code, notes, and snippets.

View GeekyShiva's full-sized avatar
💻
Remote Work

Shivank Shekhar GeekyShiva

💻
Remote Work
View GitHub Profile
@GeekyShiva
GeekyShiva / ad-contract
Created May 14, 2018 19:56
ad smart contract based on ethereum
// in src/ethereum/ZeroDollarHomePage.sol
contract ZeroDollarHomePage {
uint constant ShaLength = 40;
enum ResponseCodes {
Ok,
InvalidPullRequestId,
InvalidAuthorName,
@GeekyShiva
GeekyShiva / index.js
Created October 14, 2017 07:11
Chatbot index.js file
var express = require('express')
var bodyParser = require('body-parser')
var request = require('request')
var app = express()
app.set('port', (process.env.PORT || 5000))
// Process application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({extended: false}))
@GeekyShiva
GeekyShiva / scraper.py
Created January 31, 2017 18:42
This is a very basic scraper to understand how a scraper interacts with DOM components and how to implement one.
import urllib
import urllib.request
from bs4 import BeautifulSoup
theurl = "Profile Url which you want to scrap //Put your profile"
thepage = urllib.request.urlopen(theurl)
soup = BeautifulSoup(thepage,"html.parser")
print(soup.title.text)
@GeekyShiva
GeekyShiva / bomb.sh
Created January 19, 2017 11:22
Funny shell script to format bomb the system. //run it at you own risk
#!/bin/bash
#disables control c
trap '' 2
# disables control z
trap "" SIGTSTP
color='\E[30;40m'
clear
echo "Formating disk(s): " /dev/sd*
sleep 2
echo "Initializing..."
@GeekyShiva
GeekyShiva / Tweet_dump.py
Created January 14, 2017 00:10
To get all your tweets saved as .CSV file
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@GeekyShiva
GeekyShiva / Bing_Wallpaper_Changer.py
Created January 12, 2017 19:41
This is a python script that changes the wallpaper of ubuntu desktop to the bing's photo of the day. Tested successfully on ubuntu 14.04. (kubuntu)
import urllib2
import json
import datetime
import os.path, time
from os.path import expanduser
import gconf
import os
import commands
import ctypes
@GeekyShiva
GeekyShiva / disable_wifi_hotspot.bat
Created December 14, 2016 15:21
Windows Wifi-Hotspot: These are two .bat extention files that one can download and run (Using Administrator Permissions) to enable and disable their Laptops Wifi Adapter for hostspot. :)
netsh wlan stop hostednetwork
pause
@GeekyShiva
GeekyShiva / index.html
Created November 18, 2016 01:32
Messing with scattered points
<a-scene antialias="true">
<!-- Camera -->
<a-entity position="0 1.6 0" rotation='0 -145 0'>
<a-entity camera look-controls wasd-controls></a-entity>
</a-entity>
<a-sky color="#ECECEC"></a-sky>
</a-scene>