Skip to content

Instantly share code, notes, and snippets.

View hackerkid's full-sized avatar
🚀
Wingardium leviosa

Vishnu Ks hackerkid

🚀
Wingardium leviosa
View GitHub Profile
elsif x == "#"
redirect_to not_sucess_path
else
redirect_to :show
end
@hackerkid
hackerkid / gist:260168b3f615e8d9f87f
Last active February 22, 2016 08:27
Learn Node.js
##Learn NodeJs Fundamentals from NodeSchool (install learnyounode)
* If you are facing installation problem use this for installing learnyounode
sudo npm --proxy http://iit2013075:PASSWORD@172.31.1.4:8080 install -g learnyounode
npm config set registry http://registry.npmjs.org/
npm --http http://172.31.1.4:8080 install browser-sync
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <map>
#include <utility>
#define check(n, pos) (n & (1<<pos))
#define set(n, pos) (n | (1<<pos))
using namespace std;
int n;
import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login("email", "password")
msg = "YOUR MESSAGE!"
server.sendmail("aonouoro@gmail.com", "yo@vishnuks.com", msg)
server.quit()

Keybase proof

I hereby claim:

  • I am hackerkid on github.
  • I am vishnuks (https://keybase.io/vishnuks) on keybase.
  • I have a public key whose fingerprint is CFF4 07C5 EAC1 E497 2ACA 8BCA F35F 9D8A 1378 3206

To claim this, I am signing this object:

# Path to your oh-my-zsh installation.
export ZSH=/home/vishnu/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="pure"
autoload -U promptinit && promptinit
@hackerkid
hackerkid / talker.cpp
Created August 14, 2015 11:38
Talker file for chat application
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>