Skip to content

Instantly share code, notes, and snippets.

View artzub's full-sized avatar
😊

Artem Zubkov artzub

😊
View GitHub Profile
@artzub
artzub / clearWL.js
Last active February 21, 2021 05:58
Clear Youtube Watch Later Playlist
// open https://www.youtube.com/playlist?list=WL
(async function() {
const delay = (ms = 100) => new Promise((resolve) => {
setTimeout(() => {
resolve(true);
}, ms)
});
const loadAll = () => new Promise(async (resolve) => {
let node = document.querySelector('ytd-continuation-item-renderer');
@artzub
artzub / .bashrc
Last active September 23, 2016 23:16
config for bash prompt PS1
test_0() {
if test -f /etc/profile.d/git-sdk.sh
then
TITLEPREFIX=SDK-${MSYSTEM#MINGW}
else
TITLEPREFIX=$MSYSTEM
fi
__git_current_user() {
local user="$(git config user.name)"
@artzub
artzub / canvas-ui.md
Created September 12, 2016 06:04 — forked from obenjiro/canvas-ui.md
UI from Canvas
@artzub
artzub / qr.md
Last active August 4, 2016 12:01
describtion qr

QR код

Данные в коде

Данные передаваемые в коде представляют из себе две строки

Первая строка

Первая строка шифруется согласна алгоритма описаного ниже. Разделителями значении для параметров является пробел.

@artzub
artzub / gist:a1bf06dcd044cc614ceb
Last active December 24, 2015 16:41
snippet from http://stackoverflow.com/posts/19818659/revisions for save object into file form chrome console
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
@artzub
artzub / backup_gitlab.sh
Last active June 4, 2023 15:02
gitlab backupt to yadisk
#!/bin/bash
#####
# install yadisk
#
# $ echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" | tee -a /etc/apt/sources.list.d/yandex.list > /dev/null && wget http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG -O- | apt-key add - && apt-get update && apt-get install -y yandex-disk
#
# $ yandex-disk setup
#
# add cron command
@artzub
artzub / backup_yhs.sh
Last active December 24, 2015 02:23
backup for youtrack and hub and upsource hard
#!/bin/bash
#####
# install yadisk
#
# $ echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" | tee -a /etc/apt/sources.list.d/yandex.list > /dev/null && wget http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG -O- | apt-key add - && apt-get update && apt-get install -y yandex-disk
#
# $ yandex-disk setup
#
# add cron command
@artzub
artzub / make.sh
Last active September 19, 2024 20:43
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
@artzub
artzub / nginx.conf
Last active February 25, 2016 22:16 — forked from atma/nginx.conf
# Add to nginx.conf http section
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}