Skip to content

Instantly share code, notes, and snippets.

View zoxon's full-sized avatar

Zoxon zoxon

View GitHub Profile

Bittorrent uTorrent disable ads

Turn off ALL Ads/Featured Content/Bundle Crap in Utorrent/Bittorrent:

Options > Preferences > Advanced... Turn ALL settings to false:

  • bt.enable_pulse
  • distributed_share.enable
  • gui.show_notorrents_node
  • offers.left_rail_offer_enabled

#Fixing “WARNING: UNPROTECTED PRIVATE KEY FILE!” on Linux

If you are getting this error then you probably reset the permissions on your hidden .ssh directory in your user folder, and your keys aren’t going to work anymore. It’s very important that these files not be writable by just anybody with a login to the box, so openssh will give you an error if you try to use them.

The full error message:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@zoxon
zoxon / vscode_shortcuts.md
Created April 6, 2021 03:39 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@zoxon
zoxon / Preferences.sublime-settings
Last active December 25, 2023 06:33
Sublime Text User Preferences
{
"bold_folder_labels": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/User/Monokai Light (SL).tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "windows",
"dictionary": "Packages/Language - Russian/ru_RU.dic",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
{
"000000": "Black",
"000044": "Endless Galaxy",
"000066": "Alone in the Dark",
"000088": "Midnight in Tokyo",
"0000aa": "Bohemian Blue",
"0000ee": "Hyperlink Blue",
"0000ff": "Blue",
"00022e": "Illicit Darkness",
"000435": "Oblivion",
@zoxon
zoxon / wget.sh
Created March 30, 2023 10:03
Download html page with all assets wget
wget -E -H -k -p https://www.example.com/
@zoxon
zoxon / walk-dir-filter.ts
Created March 20, 2023 03:36
Nodejs walk dir example
import { readdir } from "node:fs/promises";
import { extname, resolve } from "node:path";
async function* walkDir(dir: string): AsyncGenerator<string> {
const entries = await readdir(dir, { withFileTypes: true });
for (const entry of entries) {
const name = resolve(dir, entry.name);
if (entry.isDirectory()) {
yield* walkDir(name);
} else if (filterFile(entry.name)) {
@zoxon
zoxon / easing.css
Created January 18, 2023 04:57
CSS Easing
:root {
--easeInSine: cubic-bezier(0.12, 0, 0.39, 0);
--easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
--easeInOutSine: cubic-bezier(0.37, 0, 0.63, 1);
--easeInQuad: cubic-bezier(0.11, 0, 0.5, 0);
--easeOutQuad: cubic-bezier(0.5, 1, 0.89, 1);
--easeInOutQuad: cubic-bezier(0.45, 0, 0.55, 1);
--easeInCubic: cubic-bezier(0.32, 0, 0.67, 0);
--easeOutCubic: cubic-bezier(0.33, 1, 0.68, 1);
--easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
@zoxon
zoxon / html-css-rules.md
Last active May 22, 2022 22:21
Требования к верстке

Требования к верстке

HTML

  1. Форматировать код;
  2. Использовать HTML5 теги;
  3. Семантически называть значения у атрибутов(class, name и т.п);
  4. Запрещается транслит(.hapka, .tovar). Можно заменить на .header, .product;
  5. Запрещается сокращать селекторы(.cb, .acc). Можно заменить на .checkbox, .accordion;
  6. Не допускается вложение блочного элемента в строчный. Например, тега заголовка(h1-h6) в ссылку;