Skip to content

Instantly share code, notes, and snippets.

eat.. sleep.. code.. repeat...


eat.. sleep.. code.. repeat...
Block or report user

Report or block fasetto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fasetto /
Created Sep 23, 2019 — forked from shobotch/
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN
Consumer key:    IQKbtAYlXLripLGPWd0HUA
import argparse
import random
import requests
import string
import socket
import sys
from threading import Thread
import sys
import requests
import cPickle
from base64 import b64encode
from hashlib import md5
if len(sys.argv) < 2:
print "[*] usage: <ip> <port>"
fasetto /
Last active Aug 19, 2018
Generates cyclic pattern
#!/usr/bin/env python3
import sys
from string import ascii_uppercase, ascii_lowercase, digits
class MaxLengthException(Exception):
fasetto / action-helpers.ts
Last active Apr 26, 2018
TypeScript FSA Sample
View action-helpers.ts
import { Action, ActionWithPayload } from './types';
export function createAction<T extends string>(type: T): Action<T>;
export function createAction<T extends string, P>(type: T, payload: P): ActionWithPayload<T, P>;
export function createAction<T extends string, P>(type: T, payload?: P) {
return payload === undefined ? { type } : { type, payload };
fasetto / list.ts
Last active Apr 25, 2018
Predicate Sample
View list.ts
type Predicate<T> = (item: T) => boolean;
function filter<T> (source : T[], callback : Predicate<T>) {
const temp = [];
for (let item of source) {
if (callback(item)) {
fasetto / typescipt-intersection-sample.ts
Last active Apr 25, 2018
TypeScript intersection sample.
View typescipt-intersection-sample.ts
interface IStudent {
id: string;
age: number;
interface IWorker {
companyId: string;
type A = IStudent & IWorker;
View phpunit.xml
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit bootstrap="vendor/autoload.php"
<testsuite name="Test suite1">
<!-- <file>file-path</file> -->
View .editorconfig
; top-most EditorConfig file
root = true
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
fasetto / normalize.scss
Last active Apr 15, 2018
Normalize CSS
View normalize.scss
/*! normalize.css v8.0.0 | MIT License | */
/* Document
========================================================================== */
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
You can’t perform that action at this time.