Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Lysak's full-sized avatar
🎯
Focusing

Dmytrii Lysak

🎯
Focusing
View GitHub Profile
@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 / Setting up a new Git Repo.md
Last active September 24, 2022 07:01
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 / 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 / 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_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 / 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 / .gnomerc
Created October 7, 2020 11:29
.gnomerc
xinput set-prop "AlpsPS/2 ALPS DualPoint TouchPad" "Device Enabled" 0
xinput set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Enabled" 0
@Lysak
Lysak / generate-ssh-key.sh
Created March 23, 2020 15:28 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@Lysak
Lysak / README.md
Last active September 27, 2019 12:34 — forked from gbraad/README.md
Buy me a coffee
We couldn’t find that file to show.