Skip to content

Instantly share code, notes, and snippets.

View furusiyya's full-sized avatar

Bilal furusiyya

View GitHub Profile
@singe
singe / extract_call.py
Created January 2, 2017 16:17
Pythonista script to extract a phone number from copy pasted text, add it to your Contacts if it doesn't exist, then call it.
import re
import clipboard
import console
import webbrowser
import urllib
import contacts
import datetime
import dialogs
def extract_num(input):
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
rot io.Reader
//IPTable rules for capturing ssh packets
//sudo iptables -A INPUT -p tcp --dport 22 -j NFQUEUE --queue-num 0
//sudo iptables -A OUTPUT -p tcp --dport 22 -j NFQUEUE --queue-num 0
//sudo iptables -A FORWARD -p tcp --dport 22 -j NFQUEUE --queue-num 0
package main
import (
@raza-basit
raza-basit / keybase.md
Created March 20, 2017 08:32
keybase.md

Keybase proof

I hereby claim:

  • I am geek96 on github.
  • I am geek96 (https://keybase.io/geek96) on keybase.
  • I have a public key whose fingerprint is 58E3 7E8C 7401 723B FE4A 4E31 F0DF 9354 CB39 8BAC

To claim this, I am signing this object:

@furusiyya
furusiyya / id_rsa.pub
Created April 18, 2017 14:25
SSH public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDg79655A0KOegZ1ohn7IcvkIYFJj4TbWPAHhZivBDbZdVTfI7fSzO32uP0XsibrxNv5054XVEUPYcm8TXIlH9clqippnyjdWM9vAXCfrB7xE7poQ9rz4e7rdIPcU/lMtI4N0iOL3lyawkzHsSHPLAozIr+fHua5Vg+dud1JeUers2EG+kxAnPPK6iPV1vqgIWKoL5nTogLu7iCDoCqY6MIWdz7CSzv9uoyYqqqrVN8sj0wfwJEIsmkR1ep0wlNtMajx2CoA4PvfDsa5ReVTop2vELcoHrrGu0EkbK+4UmcUmvMdCPLAs3SvF5r8k201eTxPw5NIAc5pi5mHAkQBX+H fsociety@fsociety
@furusiyya
furusiyya / gist:43275a21e7075cd8200293a1b4cc92d5
Created April 28, 2017 09:54 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

package main
import (
"golang.org/x/tour/reader"
)
type MyReader struct{}
type MyError string
// TODO: Add a Read([]byte) (int, error) method to MyReader.
@furusiyya
furusiyya / dockerClean.sh
Last active May 30, 2017 05:42
Remove stopped containers and untagged images created due to unsuccessful builds (Images with Repository: <none> && Tag: <None>)
#!/bin/bash
docker rmi $(docker images | grep "^<none>" | awk "{print $3}");
docker rm $(docker ps -a -q)
@furusiyya
furusiyya / Submission.md
Created August 28, 2017 17:04
Project: Glutton (https://github.com/mushorg/glutton) - Google Summer of Code 2017 final submission report

Merged Pull Requests

Issues Resolved: #72, #59
Description Glutton support number of services (protocol handlers) so each service mean number of connection on that service. So It crash after some time with error: [user.tcp] accept tcp [::]:5000: accept4: too many open files, and this error was due to the allowance of limited number of open file descriptors by the operating system. There was no deadline set for opened connections so most of the connections never get closed. In result, the number of opened connections gradually cross the maximum open file descriptors limit and cause panic. So I added connection timeout = 72 second, number of opened connection will never reach the open file descriptor limit. Another reason was Freki; Glutton useses freki as a networking core so frek

@furusiyya
furusiyya / BlockChainHacking.md
Created September 17, 2017 23:59
Getting started with blockchain hacking :)