Skip to content

Instantly share code, notes, and snippets.

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

SERKAN BIRCAN fasetto

😎
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
fasetto / key.md
Created Sep 23, 2019 — forked from shobotch/key.md
Twitter (un)official Consumer Key
View key.md

Twitter Official Consumer Key

Twitter for Android

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

Twitter for iPhone

type:            PIN
Consumer key:    IQKbtAYlXLripLGPWd0HUA
View olympus-pwn.py
#!/usr/bin/python
import argparse
import random
import requests
import string
import socket
import sys
from threading import Thread
View htb-canape.pwn.py
import sys
import requests
import cPickle
from base64 import b64encode
from hashlib import md5
if len(sys.argv) < 2:
print "[*] usage: pwn.py <ip> <port>"
sys.exit(0)
@fasetto
fasetto / pattern.py
Last active Aug 19, 2018
Generates cyclic pattern
View pattern.py
#!/usr/bin/env python3
import sys
from string import ascii_uppercase, ascii_lowercase, digits
MAX_PATTERN_LENGTH = 20280
class MaxLengthException(Exception):
pass
@fasetto
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
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)) {
temp.push(item);
@fasetto
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"
colors="true"
verbose="true"
stopOnFailure="false">
<testsuites>
<testsuite name="Test suite1">
<directory>tests</directory>
<!-- <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
fasetto / normalize.scss
Last active Apr 15, 2018
Normalize CSS
View normalize.scss
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
/* 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.