Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Dmytrii Lysak

🎯
Focusing
View GitHub Profile
@Lysak
Lysak / Setting up a new Git Repo.md
Last active Sep 24, 2022
Setting up a new Git Repo
View Setting up a new Git Repo.md

Setting up a new Git Repo

…or create a new repository on the command line

echo "# <reponame>" >> README.md
git init
gitmyname
git add README.md

git commit -m "first commit"

@Lysak
Lysak / automatically_add_cookie_param_to_selected_sites.user.js
Last active Aug 31, 2022
automatically_add_cookie_param_to_selected_sites.user.js
View automatically_add_cookie_param_to_selected_sites.user.js
@Lysak
Lysak / automatically_enable_filter_just_my_tasks_in_asana_project.user.js
Last active Aug 31, 2022
Automatically enable filter "Just my tasks" in Asana project
View automatically_enable_filter_just_my_tasks_in_asana_project.user.js
// ==UserScript==
// @name Automatically enable filter "Just my tasks" in Asana project
// @namespace https://github.com/Lysak
// @version 0.1.3
// @description Automatically enable filter "Just my tasks" in Asana project (Code License: MIT License)
// @author Dmytrii Lysak @Lysak
// @match https://app.asana.com/*
// @icon https://www.google.com/s2/favicons?domain=asana.com
// @grant none
// @noframes
@Lysak
Lysak / array_diff_multidimensional.php
Created Apr 30, 2022
array_diff_multidimensional
View array_diff_multidimensional.php
function array_diff_multidimensional($arr1, $arr2): array
{
$check = is_array($arr1) && count($arr1) > 0;
$result = ($check) ? ((is_array($arr2) && count($arr2) > 0) ? $arr2 : []) : [];
if ($check) {
foreach ($arr1 as $key => $value) {
if (isset($result[$key])) {
$result[$key] = array_diff($value, $result[$key]);
} else {
$result[$key] = $value;
@Lysak
Lysak / pwd.js
Created Sep 1, 2018 — forked from gladiatorAsh/pwd.js
List of most used passwords (Why this approach??)
View pwd.js
{passwords:"123456,password,12345678,qwerty,123456789,12345,1234,111111,1234567,dragon,123123,baseball,abc123,football,monkey,letmein,shadow,master,696969,mustang,666666,qwertyuiop,123321,1234567890,pussy,superman,654321,1qaz2wsx,7777777,fuckyou,qazwsx,jordan,123qwe,000000,killer,trustno1,hunter,harley,zxcvbnm,asdfgh,buster,batman,soccer,tigger,charlie,sunshine,iloveyou,fuckme,ranger,hockey,computer,starwars,asshole,pepper,klaster,112233,zxcvbn,freedom,princess,maggie,pass,ginger,11111111,131313,fuck,love,cheese,159753,summer,chelsea,dallas,biteme,matrix,yankees,6969,corvette,austin,access,thunder,merlin,secret,diamond,hello,hammer,fucker,1234qwer,silver,gfhjkm,internet,samantha,golfer,scooter,test,orange,cookie,q1w2e3r4t5,maverick,sparky,phoenix,mickey,bigdog,snoopy,guitar,whatever,chicken,camaro,mercedes,peanut,ferrari,falcon,cowboy,welcome,sexy,samsung,steelers,smokey,dakota,arsenal,boomer,eagles,tigers,marina,nascar,booboo,gateway,yellow,porsche,monster,spider,diablo,hannah,bulldog,junior,london,purple,co
@Lysak
Lysak / cloudSettings
Last active Dec 16, 2021
Visual Studio Code Sync Settings Gist
View cloudSettings
{"lastUpload":"2021-12-16T15:29:36.285Z","extensionVersion":"v3.4.3"}
@Lysak
Lysak / country.sql
Created Jun 28, 2021 — forked from ianare/country.sql
Import countries to PostgreSQL from geonames data
View country.sql
DROP TABLE "country";
CREATE TABLE "country" (
"iso" character(2) NOT NULL,
"iso3" character(3) NOT NULL,
"iso_numeric" character(3) NOT NULL,
"fips" character(2),
"name" character varying(128) NOT NULL,
"capital" character varying(128),
"area" float,
@Lysak
Lysak / TestController.php
Last active Jan 15, 2021
yii2 command for grab and parse html
View TestController.php
<?php
namespace app\commands;
use app\components\CurlClient;
use app\components\UtilsManager;
use DOMDocument;
use Exception;
use yii\console\Controller;
@Lysak
Lysak / friGate3_site_list.txt
Last active Oct 29, 2020
friGate3 site list for Ukraine
View friGate3_site_list.txt
ip.fri-gate.org
*.2ip.ru [RU]
*.1tvcrimea.ru
*.2ch.hk
*.adfox.ru
*.antifashist.com
*.antimaydan.info
*.apiok.ru
*.attachmail.ru
*.auto.ru
View .gnomerc
xinput set-prop "AlpsPS/2 ALPS DualPoint TouchPad" "Device Enabled" 0
xinput set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Enabled" 0