Skip to content

Instantly share code, notes, and snippets.

View lloss's full-sized avatar
🏠
Working from home

Ihor lloss

🏠
Working from home
View GitHub Profile
# -*- 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
-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
/*@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;
}
.type.storage.arrow.function {
font-family: 'Fira code';
}
@lloss
lloss / httpkz.js
Last active May 12, 2017 20:54
kekekek
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];}}
}
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 20:01
caps to control
setxkbmap -option ctrl:nocaps
@lloss
lloss / main.js
Created April 29, 2017 20:32
ForABadPersonWhoDaredToIgnoreMeAndHeJustFuckedUp
`joy1337 joyka1337 joy joyka1337 joyka.2001artur.32324234 arturka223`.replace(/(?:(joy|artur)((\w+)?[.,-:]?(\w+)?(\d+)?)?)/ig, '0')
@lloss
lloss / radom.js
Created April 16, 2017 21:02
random
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 April 14, 2017 21:28
evil_for
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}