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
@lloss
lloss / 20-intel.conf
Created April 11, 2017 22:13
xorg.conf.d
#/usr/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
Option "DRI" "3"
EndSection
@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}
@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 / 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 / settings.json
Last active April 29, 2017 20:33
vscode config
{
"editor.fontFamily": "Hack",
"editor.fontSize": 17,
"editor.fontLigatures": true,
"editor.mouseWheelZoom": true,
"editor.insertSpaces": false,
"editor.quickSuggestionsDelay": 1,
"editor.renderWhitespace": false,
"editor.wordWrap": true,
"editor.lineHeight": 28,
@lloss
lloss / n.sh
Last active May 9, 2017 20:01
caps to control
setxkbmap -option ctrl:nocaps
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@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];}}
}
.type.storage.arrow.function {
font-family: 'Fira code';
}
/*@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;
}