Skip to content

Instantly share code, notes, and snippets.

View whalehulk's full-sized avatar
😍
What A Time To Be Alive

Whale Hulk whalehulk

😍
What A Time To Be Alive
View GitHub Profile

Keybase proof

I hereby claim:

  • I am whalehulk on github.
  • I am whalehulk (https://keybase.io/whalehulk) on keybase.
  • I have a public key ASAkrPBz8CzLx47oUfDkp8MugaSJUkh18WL8HQWyGr0UYwo

To claim this, I am signing this object:

seed-node=165.227.183.9:16431
seed-node=165.227.187.188:16431
EMISSION_SPEED_FACTOR=18
DIFFICULTY_TARGET=120
CRYPTONOTE_DISPLAY_DECIMAL_POINT=10
MONEY_SUPPLY=10000000000000000000
GENESIS_BLOCK_REWARD=5000000000000000000
SYNC_FROM_ZERO=1
DEFAULT_DUST_THRESHOLD=1000000
MINIMUM_FEE=1000000
#include<stdio.h>
#include<ctype.h>
//our task is to convert infix to postfix expression using stack
//first we need a stack
//let's define it
char s[max];
int val; //here val is value to be pushed to the stack
#include <stdio.h>
#include <stdlib.h>
#define max 10
//defining basic requirements like array for stack implementation
//top pointer or handler
//x to get the value that is to be pushed to the stack
int s[max],top=-1,x;
//making a push function for pushing x to the array
void push(void)
{
#!/bin/bash
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.4.list
echo "deb http://repo.pritunl.com/stable/apt xenial main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
apt-get --assume-yes update
apt-get --assume-yes upgrade
apt-get --assume-yes install pritunl mongodb-org
systemctl start pritunl mongod
systemctl enable pritunl mongod
#!/bin/bash
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.4.list
echo "deb http://repo.pritunl.com/stable/apt xenial main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
apt-get --assume-yes update
apt-get --assume-yes upgrade
apt-get --assume-yes install pritunl mongodb-org
systemctl start pritunl mongod
systemctl enable pritunl mongod
#!/bin/bash
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.4.list
echo "deb http://repo.pritunl.com/stable/apt xenial main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
apt-get --assume-yes update
apt-get --assume-yes upgrade
apt-get --assume-yes install pritunl mongodb-org
systemctl start pritunl mongod
systemctl enable pritunl mongod
@whalehulk
whalehulk / asimplewebsiteblocker.py
Created August 6, 2017 17:48
a simple website blocker for everyone for concentrating on work :).
import time
from datetime import datetime as dt
localhost="127.0.0.1"
website_list=["www.facebook.com","facebook.com"]
start=input("Hey Enter Starting of ur working hours !")
end=input("Hey Enter Ending Time of ur working hours ?")
host_temp=r"C:\Windows\System32\drivers\etc\hosts"
while True:
if dt(dt.now().year,dt.now().month,dt.now().day,int(start)) < dt.now() < dt(dt.now().year,dt.now().month,dt.now().day,int(end)):
@whalehulk
whalehulk / matrix transpose program in c
Created July 29, 2017 09:37
prints transpose of a matrix in c
#include<stdio.h>
#include<conio.h>
#include<math.h>
//void mtrix_print(int a[3][3]);
int main()
{
int i,j,a[3][3],k,l,b[3][3];
printf("ENTER 3X3 MATRIX : \nI WILL TRANSPOSE IT : \n");
/*making the complete array filled with zeros to make it look symmetric*/
@whalehulk
whalehulk / multiplication table printer in c
Created July 27, 2017 17:05
multiplication table printer in c
#include<stdio.h>
#include<stdlib.h>
#define colmax 10
#define rowmax 12
int main()
{
int i,j,sum=1;//initializing variables
for(i=1;i<=rowmax;i++)//this iterates rows from 1 to 12
{