Skip to content

Instantly share code, notes, and snippets.

View Lysak's full-sized avatar
🎯
Focusing

Dmytrii Lysak

🎯
Focusing
View GitHub Profile
@Lysak
Lysak / Setting up a new Git Repo.md
Last active April 29, 2024 11:12
Setting up a new Git Repo

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 March 20, 2023 10:37
automatically_add_cookie_param_to_selected_sites.user.js
@Lysak
Lysak / automatically_like_comments_at_youtube_studio.user.js
Last active March 20, 2023 10:36
Automatically like comments at studio.youtube.com
// ==UserScript==
// @name Automatically like comments at studio.youtube.com
// @namespace https://github.com/Lysak
// @version 0.2
// @author Dmytrii Lysak @Lysak
// @match https://studio.youtube.com/*
// @require https://code.jquery.com/jquery-3.6.3.min.js
// @grant none
// @run-at document-end
// @description Automatically like comments at studio.youtube.com (Code License: MIT License)
@Lysak
Lysak / automatically_enable_filter_just_my_tasks_in_asana_project.user.js
Last active February 15, 2023 00:45
Automatically enable filter "Just my tasks" in Asana project
// ==UserScript==
// @name Automatically enable filter "Just my tasks" in Asana project
// @namespace https://github.com/Lysak
// @version 0.1.5
// @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 April 30, 2022 18:17
array_diff_multidimensional
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 September 1, 2018 11:47 — forked from gladiatorAsh/pwd.js
List of most used passwords (Why this approach??)
{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 December 16, 2021 15:29
Visual Studio Code Sync Settings Gist
{"lastUpload":"2021-12-16T15:29:36.285Z","extensionVersion":"v3.4.3"}
@Lysak
Lysak / country.sql
Created June 28, 2021 16:01 — forked from ianare/country.sql
Import countries to PostgreSQL from geonames data
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 January 15, 2021 07:14
yii2 command for grab and parse html
<?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 October 29, 2020 20:28
friGate3 site list for Ukraine
ip.fri-gate.org
*.2ip.ru [RU]
*.1tvcrimea.ru
*.2ch.hk
*.adfox.ru
*.antifashist.com
*.antimaydan.info
*.apiok.ru
*.attachmail.ru
*.auto.ru