Skip to content

Instantly share code, notes, and snippets.

@suhailvs
suhailvs / wrap_wallet_cracker.py
Last active October 3, 2017 11:53
Wrap wallet cracker
""" Usage:
$ wget http://suhailvs.mooo.com/media/images/t1.sqlite3
>>> import cracker as main
>>> main.save_a_pp() #"Generate Random Passphrase with salt a@b.c"
>>> main.show() # Show 10 items from Databse 'db.sqlite3'
>>> main.show(['l0Jl47s5',''])
>>> main.show(['','1MkupVKiCik9iyfnLrJoZLx9RH4rkF3hnA']) # warp wallet challenge2
>>> main.manual() # manually input passphrase and salt
"""
@suhailvs
suhailvs / sublime_ssh.md
Created September 25, 2017 03:38
How to use Sublime over SSH

How to use Sublime over SSH

Installation(SFTP)

Download Package Control and use the Package Control: Install Package command from the command palette. The command palette is opened via ctrl+shift+p.

Once you run the Package Control: Install Package command, a list of packages will appear. Type in SFTP and hit enter.

Mapping a Local Folder to a Remote Folder

@suhailvs
suhailvs / ethereum.md
Created September 24, 2017 07:26
pyethapp tutorial

Pyethapp example

Installation

Virtualenv: $ apt-get install virtualenv

Create an env and activate it:

$ virtualenv venv
$ source venv/bin/activate
@suhailvs
suhailvs / bitcoin.md
Last active September 21, 2017 14:32
Bitcoin Work

Installation

$ sudo apt-add-repository ppa:bitcoin/bitcoin
$ sudo apt-get update  

To install the Bitcoin Core Graphical User Interface (GUI):

$ sudo apt-get install bitcoin-qt

@suhailvs
suhailvs / nginx_local_setup.md
Created June 5, 2015 06:41
How To Set Up nginx Virtual Hosts on Ubuntu

taken from here

1: Install nginx:

sudo apt-get install nginx

2: Create a New Directory:

The first step in creating a virtual host is to a create a directory where we will keep the new website’s information.

@suhailvs
suhailvs / virtualenvwrapper.md
Last active August 29, 2015 14:13
How to install v wrapper
$ sudo pip install virtualenvwrapper

# append it to file `.bashrc`
$ vi ~/.bashrc
source /usr/local/bin/virtualenvwrapper.sh

now restart terminal

@suhailvs
suhailvs / python_socialauth.md
Last active January 23, 2017 10:55
Social authentication on django

install django,python-social-auth

pip install django
pip install python-social-auth

./manage.py startproject mysite

update mysite/mysite/settings.py

@suhailvs
suhailvs / angularjs.md
Last active January 12, 2017 08:47
Angularjs Task add/edit example

First create backend endpoints using Django Rest Framework:

task/models

from django.db import models
class Task(models.Model):
    completed = models.BooleanField(default=False)
    title = models.CharField(max_length=100)
    description = models.TextField()
@suhailvs
suhailvs / internet_usage.md
Created December 31, 2014 02:17
How to monitor internet usage?

Install

$ apt-get install vnstat

Usage

To create the cron job simply run this command

$ vnstat -u -i eth0

@suhailvs
suhailvs / terminal_commands.md
Last active August 29, 2015 14:12
Terminal Commands

to kill all process:

killall -9 <name>

to copy file to server:

scp <filename> root@djangoer.com:

to get disk usage: