Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Igor lloss

🏠
Working from home
View GitHub Profile
View h.py
# -*- coding: utf-8 -*-
import urllib.request
import urllib.error
import time
import csv
import re
import json
from tabulate import tabulate
from random import randint
from proxy_parser import get_proxy
View gist:6e6571a9dcc1d83d1a7b3a2161d5990f
-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
View config.css
/*@font-face {
font-family: 'Monoid ligatures';
src: local('Monoid');
unicode-range: U+0021-0026, U+002A-002B, U+002D-002F, U+003A-003E, U+007B-007E;
}*/
/*U+007B, U+007D, - curly brackets*/
/*.view-lines {
font-family: 'Operator mono ligatures','Monoid ligatures', 'menlo' !important;
}
View style.css
.type.storage.arrow.function {
font-family: 'Fira code';
}
View httpkz.js
let f = [];
function addKek(func) {
if(typeof func === 'function'){for (let i = 0; i < f.length; i++) {if (f[i].includes(func)) {f[i][1] = true;return;}}
f = [...f, [func, false]];
}else{throw new Error('input should be a function')}
}
function launcKek() {
for (let i = 0; i < f.length; i++) {if(typeof f[1] !== 'undefined' ){!f[i][1] ? (()=> {f[i][0](); f[i][1] = true})() : delete f[i];}}
}
View n.sh
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@lloss
lloss / n.sh
Last active May 9, 2017
caps to control
View n.sh
setxkbmap -option ctrl:nocaps
@lloss
lloss / main.js
Created Apr 29, 2017
ForABadPersonWhoDaredToIgnoreMeAndHeJustFuckedUp
View main.js
`joy1337 joyka1337 joy joyka1337 joyka.2001artur.32324234 arturka223`.replace(/(?:(joy|artur)((\w+)?[.,-:]?(\w+)?(\d+)?)?)/ig, '0')
View radom.js
import _ from 'lodash';
const FIRST_POOL = 'firstPool';
const SECOND_POOL = 'secondPool';
const THIRD_POOL = 'thirdPool';
const FOURTH_POOL = 'fourthPool';
const FIFTH_POOL = 'readySentences';
const INSULTS_LINK = 'https://api.myjson.com/bins/pxhnd';
const isJsonLoaded = {loaded: false, json: {}};
@lloss
lloss / l.js
Last active Apr 14, 2017
evil_for
View l.js
const axios = require("axios");
const urls = ['https://github.com/mzabriskie/axios', 'https://discord.js.org'];
async function asyncLoadAllTheChunks() {
const resps = await Promise.all(urls.map(url=> axios.get(url)))
const [first, second] = resps;
console.log(`
тут первый ${first}
тут второй ${second}