Skip to content

Instantly share code, notes, and snippets.

Yago yagop

  • Madrid, Spain
Block or report user

Report or block yagop

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
@yagop
yagop / config.toml
Last active Dec 9, 2016
Telegram bot torrent to folder
View config.toml
BotToken = "123456:AAAAAAA"
AdminId = 11696011
TorrentDownloadPath = "/tmp"
@yagop
yagop / irc.yago.me.conf
Created Oct 20, 2016
My Lounge IRC Configuration
View irc.yago.me.conf
server {
listen 80;
root /home/yago/production/lounge/client/;
server_name irc.yago.me;
autoindex off;
try_files $uri $uri @remote;
@yagop
yagop / base.sh
Last active Apr 10, 2018
My Scaleway Ubuntu base script
View base.sh
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
View hackerman.sh
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 / anti-ads-recovery.sh
Last active Aug 27, 2016
Block ads in Android like a pro [Root]
View anti-ads-recovery.sh
#!/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 / LinkifyWeb.java
Last active Dec 1, 2015
WhatsApp blocking Telegram links
View LinkifyWeb.java
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 {
View init.js
// 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 / flooders-and-spammers.md
Last active Nov 9, 2015
Telegram Hall of Shame
View flooders-and-spammers.md

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
@yagop
yagop / gist:92d896a58808c2005dda
Created Oct 26, 2015 — forked from jeremybeard/gist:d6f36681852787127629
Sample FIX messages using ASCII 001 delimiter
View gist:92d896a58808c2005dda
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
View gist:1cc54fe183f84345e958
CREATE VIEW fix_view AS
SELECT
tag[1] AS Account
, tag[2] AS AdvId
, tag[3] AS AdvRefID
, tag[4] AS AdvSide
, tag[5] AS AdvTransType
, tag[6] AS AvgPx
, tag[7] AS BeginSeqNo
, tag[8] AS BeginString
You can’t perform that action at this time.