Skip to content

Instantly share code, notes, and snippets.

View Kamensky124's full-sized avatar
💭
I will complete your project on time

Kamensky Andrey Kamensky124

💭
I will complete your project on time
View GitHub Profile
@nmz787
nmz787 / each_cell_on_its_own_line
Last active August 20, 2023 09:38
git-xlsx-textconv-python
import xlrd
import sys
if __name__ == '__main__':
if len(sys.argv) != 2:
print "Usage: git-xlsx-textconv file.xslx"
excelFileName = sys.argv[1]
xlFile = xlrd.open_workbook(excelFileName)
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active October 21, 2025 01:14
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@mimukit
mimukit / SSH key setup.md
Last active October 11, 2024 11:38
Quick guide for SSH setup on macOS
  1. Setup ssh key on your pc (skip this step if you already have it)
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    
    • Start the ssh-agent in the background.
    eval "$(ssh-agent -s)"
    
  • Add your SSH private key to the ssh-agent and store your passphrase in the keychain.
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
{
"suggest.noselect": false,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
"graphql"
@ignitz
ignitz / delete_watchlater_in_youtube_LEGACY.js
Created January 20, 2020 13:55
Delete entire playlist Watch Later on Youtube
var items = $('body').getElementsByClassName("yt-uix-button yt-uix-button-size-default yt-uix-button-default yt-uix-button-empty yt-uix-button-has-icon no-icon-markup pl-video-edit-remove yt-uix-tooltip");
function deleteWL(i) {
setInterval(function() {
items[i].click();
}, 500);
}
for (var i = 0; i < 1; ++i)
@david-crespo
david-crespo / rain-world.md
Last active September 19, 2025 23:43
How to Enjoy Rain World

2025-05-06: The canonical version of this guide is now https://crespo.business/posts/how-to-enjoy-rain-world/


How to Enjoy Rain World

A spoiler-free guide to the spoilers

TL;DR: play as long as you can without help, until you get frustrated. At that point, the recommended region order helps a lot without spoiling anything but region names. If you can't find the next region, the world map (only showing region connections, no detail) will tell you what direction to look in.

" Мой актуальный конфиг тут: https://github.com/alexey-goloburdin/dotfiles
/*
* Square Every Digit
* https://www.codewars.com/kata/546e2562b03326a88e000020
*/
// Solution 1
// toString - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
// join - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join
function squareDigits(num){