Skip to content

Instantly share code, notes, and snippets.

@yagop
yagop / gist:92d896a58808c2005dda
Created October 26, 2015 11:10 — forked from jeremybeard/gist:d6f36681852787127629
Sample FIX messages using ASCII 001 delimiter
8=FIX.4.19=6135=A34=149=EXEC52=20121105-23:24:0656=BANZAI98=0108=3010=003
8=FIX.4.19=6135=A34=149=BANZAI52=20121105-23:24:0656=EXEC98=0108=3010=003
8=FIX.4.19=4935=034=249=BANZAI52=20121105-23:24:3756=EXEC10=228
8=FIX.4.19=4935=034=249=EXEC52=20121105-23:24:3756=BANZAI10=228
8=FIX.4.19=10335=D34=349=BANZAI52=20121105-23:24:4256=EXEC11=135215788257721=138=1000040=154=155=MSFT59=010=062
8=FIX.4.19=13935=834=349=EXEC52=20121105-23:24:4256=BANZAI6=011=135215788257714=017=120=031=032=037=138=1000039=054=155=MSFT150=2151=010=059
8=FIX.4.19=15335=834=449=EXEC52=20121105-23:24:4256=BANZAI6=12.311=135215788257714=1000017=220=031=12.332=1000037=238=1000039=254=155=MSFT150=2151=010=230
8=FIX.4.19=10335=D34=449=BANZAI52=20121105-23:24:5556=EXEC11=135215789503221=138=1000040=154=155=ORCL59=010=047
8=FIX.4.19=13935=834=549=EXEC52=20121105-23:24:5556=BANZAI6=011=135215789503214=017=320=031=032=037=338
@yagop
yagop / flooders-and-spammers.md
Last active November 9, 2015 10:10
Telegram Hall of Shame

Flooders

Name Nick ID Reason Screen Shots
Haidar ibrahem @Haidar_r 145725071 Added flooder
حيدوش @Haidar_q 125225419 Flooder
Mck @X1xbot 128358359 Bot used in flood
BØT_X N X X @Xnxx_bot 56572777 Bot used in flood
Easy destroy @easydestroy_bot 130512548 Bot for flooding 1
Null Name @romeuzinho 147965962 Flooder 1
// superagent.min.js v1.2.0, https://github.com/visionmedia/superagent
!function(b){if("object"==typeof exports&&"undefined"!=typeof module){module.exports=b()}else{if("function"==typeof define&&define.amd){define([],b)}else{var a;"undefined"!=typeof window?a=window:"undefined"!=typeof global?a=global:"undefined"!=typeof self&&(a=self),a.superagent=b()}}}(function(){var d,b,a;return(function c(f,k,h){function g(q,n){if(!k[q]){if(!f[q]){var m=typeof require=="function"&&require;if(!n&&m){return m(q,!0)}if(e){return e(q,!0)}var p=new Error("Cannot find module '"+q+"'");throw p.code="MODULE_NOT_FOUND",p}var i=k[q]={exports:{}};f[q][0].call(i.exports,function(l){var o=f[q][1][l];return g(o?o:l)},i,i.exports,c,f,k,h)}return k[q].exports}var e=typeof require=="function"&&require;for(var j=0;j<h.length;j++){g(h[j])}return g})({1:[function(g,h,f){h.exports=i;function i(j){if(j){return e(j)}}function e(k){for(var j in i.prototype){k[j]=i.prototype[j]}return k}i.prototype.on=i.prototype.addEventListener=function(k,j){t
@yagop
yagop / LinkifyWeb.java
Last active December 1, 2015 16:06
WhatsApp blocking Telegram links
package com.whatsapp.util;
import android.text.Spannable;
import android.text.style.URLSpan;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class LinkifyWeb {
@yagop
yagop / anti-ads-recovery.sh
Last active August 27, 2016 13:56
Block ads in Android like a pro [Root]
#!/bin/bash
adb shell mount -o rw /dev/block/platform/msm_sdcc.1/by-name/system /system
adb shell cp /system/etc/hosts /system/etc/hosts.$(date +"%Y-%m-%d_%H:%M:%S")
wget "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" -O /tmp/hosts
sed -i /analytics\.twitter\.com/d /tmp/hosts
adb push /tmp/hosts /system/etc/hosts
@yagop
yagop / hackerman.sh
Created April 23, 2016 23:08
Youtube2GIF
cd /tmp
youtube-dl "https://www.youtube.com/watch?v=bS5P_LAqiVg"
# 6s of durantion. Starting from 00:10:46. Kung Fury as input file. 11 fps. 640x360 frame size. Yes to all. Save as out.gif
ffmpeg -t 6 -ss 00:10:46 -i KUNG\ FURY\ Official\ Movie\ \[HD\]-bS5P_LAqiVg.mkv -r 11 -s 640x360 -y out.gif
# The maximum GIF file size for twitter is 5MB, our file is 4.8MB
@yagop
yagop / base.sh
Last active April 10, 2018 21:50
My Scaleway Ubuntu base script
mkdir -p /mnt/downloads
chmod 777 /mnt/downloads/
sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount
sudo systemctl enable tmp.mount
sudo systemctl start tmp.mount
mkfs -t ext4 /dev/vdb
cp mnt-downloads.mount /etc/systemd/system/
systemctl enable mnt-downloads.mount
@yagop
yagop / irc.yago.me.conf
Created October 20, 2016 10:01
My Lounge IRC Configuration
server {
listen 80;
root /home/yago/production/lounge/client/;
server_name irc.yago.me;
autoindex off;
try_files $uri $uri @remote;
@yagop
yagop / config.toml
Last active December 9, 2016 22:50
Telegram bot torrent to folder
BotToken = "123456:AAAAAAA"
AdminId = 11696011
TorrentDownloadPath = "/tmp"
@yagop
yagop / emojis.js
Created December 25, 2016 22:48
Simple Twitter emoji streamer
const emojisStr = '😀😂😅😆😇😘😍😜😎🤓😶😏🤗😐😡😟😞🙄☹️😔😮😴💤💩😭😈👿👌👸🎅👅👀👍💪👻🤖😺🐟🐠🐷🐌🐼🐺🐯🐅🦃🐕🐇🌾🎍🍀🐾🌏🌚🌝🌞🌦🔥💥☃️✨❄️💧🍏🍊🍌🌽🍔🌮☕️🍧⚽️🏐🎖🎹🎰🎣🏓🚵🎮🎬🚗🚓🚨🚋🚠🛥🚀🚢🎠🚧🚧🚧✈️🏥📱⌨💻📠📞🔦💴💸🔮💊🔬🔭📫📈📉🖇✂️🔒🔓📒💛❤️💙💔💞💕💝💘🚾⚠️♻️🎵💬🕐🇬🇧🇺🇸🇪🇸🇵🇹🇳🇺🇳🇷🇬🇾🇬🇦🇮🇸🇯🇵';
const emojis = [...emojisStr]
.filter(emoji => emoji.length > 0)
.filter(emoji => emoji !== '\uFE0F');
module.exports = emojis;