Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Gmail Icon
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mail.google.com/*
// @grant none
// @require http://code.jquery.com/jquery-3.2.1.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js

В. П. Погожев. Воспоминания о П. И. Чайковском

Назначенное Чайковскому пособие в 3000 рублей в год, то есть по 250 рублей в месяц, не могло сразу улучшить его материальное положение, тем более что первые два месяца 1888 года Петр Ильич провел за границей в своем триумфальном, но убыточном для кармана шествии по Западной Европе. Непрактичность Чайковского, его необычайная щедрость и неумеренная деликатность в денежных вопросах были изумительны. Достаточно указать, например, на то, что передавая Дирекции театров по условию 4 ноября 1887 года права на представление своей оперы «Чародейка» он с легким сердцем третью часть своего авторского вознаграждения передал либреттисту оперы И. В. Шпажинскому.

Эта нерасчетливость Петра Ильича в его тратах привела к тому, что он вернулся в Россию без денег и писал мне уже с Кавказа так:

«28 марта 1888 года, Тифлис.

Многоуважаемый Владимир Петрович!

@1v
1v / gist:67e567a7e25198b930d2cf5fff2e7d1d
Last active April 7, 2020 23:47
MySQL root reset password

I recently upgrade my Ubuntu 15.04 to 16.04 and this has worked for me:

  1. First, connect in sudo mysql

     sudo mysql -u root
    
  2. Check your accounts present in your db

SELECT User,Host FROM mysql.user;

Tier 1

Good

  • Tropical Island
  • Glacier
  • Desert

Trash

  • Lookout

Tier 2

Good

@1v
1v / 1.markdown
Last active September 18, 2020 19:59

Act 1

  • Stormblast Mine

After Brut

  • Swift Assembly Support
  • Multiple Traps Support
  • Blastchain Mine Support
  • Flame Dash
  • Clarity
  • Added lightning damage
@1v
1v / squid_proxy_tutorial.md
Created November 8, 2021 01:09 — forked from jackblk/squid_proxy_tutorial.md
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
@1v
1v / rvm.markdown
Last active March 31, 2022 16:57
RVM installation
curl -L https://get.rvm.io | bash
source /home/user/.rvm/scripts/rvm
rvm autolibs fail

source

@1v
1v / README.markdown
Last active April 12, 2022 05:05
Bash script to run shutter on launch
cd ~/.local/bin
wget https://gist.github.com/1v/363393ebed0da5ed6f14678b6e031f21/raw/9c367b97565cc059f41ff95d9dc56db9085e13ca/shut-ter-auto-launch
chmod +x shut-ter-auto-launch

Add shut-ter-auto-launch to Startup Applications.

@1v
1v / postgresql-backup-and-restore.md
Created October 6, 2022 22:24 — forked from mcandre/postgresql-backup-and-restore.md
PostgreSQL Backup and Restore

POSTGRESQL BACKUP AND RESTORE

$ pg_dumpall --clean -U <user> -f backup.sql
$ psql -U <user> -f backup.sql

Warnings

  • A PostgreSQL user with administrative privileges is required.