Skip to content

Instantly share code, notes, and snippets.

Avatar
🐵
Monkey business..

Edvin Boul kittenparry

🐵
Monkey business..
View GitHub Profile
View youtube_small_thumbnails.user.js
// ==UserScript==
// @name Youtube Small Thumbnails
// @namespace http://userstyles.org
// @description Youtube Small Thumbnails
// @author one_zero
// @homepage https://userstyles.org/styles/177035
// @include http://youtube.com/*
// @include https://youtube.com/*
// @include http://*.youtube.com/*
// @include https://*.youtube.com/*
View spicetify_shortcuts.md
  • F Display key combinations of certain elements on screen, press them to navigate.
  • / Topmost search (instead of default Ctrl L bind).
  • M Like/unlike selected track.
  • Ctrl Q Show queue page.
  • Ctrl Tab / Ctrl Shift Tab Navigate items in left-hand side menu.

Noted down ones I would use constantly. More on view control and what not in the extension file. It lacks the functionality to focus to a song list (be it an album or a playlist), but I suppose one can write the function themself, or spam Tab until one is there.

@kittenparry
kittenparry / ctrl-r.md
Last active Sep 11, 2019
Some terminal shortcuts
View ctrl-r.md
  • CTRL-a Beginning of Line
  • CTRL-e End of line
  • CTRL-k Cut out everything to the right of the cursor (saves in the clipboard too)
  • CTRL-m Like hitting enter
  • CTRL-y Paste
  • CTRL-space Set the mark
  • CTRL-w Copy between cursor and the "mark" into the clipboard
  • CTLR-f Forward one character
  • CTRL-b Backward one character
  • CTRL-p Previous line (in history) - NEVER USE your arrow keys!
View disable_smooth_scrolling.js
/*
HEY YOU! PRO-TIP:
If you want to save some bandwidth by not downloading smooth scrolling scripts,
add the following rules to the custom filters list on your favorite ad blocking
browser extension:
/jquery.nicescroll*.js
/jquery.smoothscroll*.js
/jquery.smooth-scroll*.js
/jquery-smoothscroll*.js
@kittenparry
kittenparry / general_notes.md
Created Jul 20, 2019
To do, to check list of sorts, I guess
View general_notes.md
  • Quokka.js for VSCode to display the values of variables and overall everything as one types.
@kittenparry
kittenparry / pacman_cmds.sh
Last active Mar 10, 2019
Some pacman commands noted down from @LukeSmithxyz's video
View pacman_cmds.sh
sudo pacman -Syu # Sy: apt-get update & Su: apt-get upgrade
sudo pacman -Rns $program # s: remove dependencies & n: remove root config files
$cmd | wc -l # wordcount by lines
pacman -Qe # query installed programs by you or programs you installed
pacman -Qeq # same without version number, could also apply to other things
# /etc/pacman.conf # configuration location
# Color # colours in pacman output
# VerbosePkgLists # detailed listing
# ILoveCandy # pacman instead of loading
# /etc/pacman.d/mirrorlist # mirror list
View MOC Shortcuts
List of MOC Keys
enter -- starts playing
s -- stops playing
n -- plays next item from the playlist
b -- plays previous item from the playlist
space -- pause
p -- pause
S -- plays at random
R -- repeats the same song in a loop,
@kittenparry
kittenparry / i3-gaps_installation_guide.md
Created Feb 13, 2019 — forked from boreycutts/i3-gaps_installation_guide.md
A simple installation guide for i3-gaps
View i3-gaps_installation_guide.md

Installing i3-gaps

Dependencies

i3-gaps has some packages that are required for it to work so install these things:

sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool 

You also need to install libxcb-xrm-dev, but I got Unable to locate package libxcb-xrm-dev when trying to install from the apt repositories on Ubuntu 16.04. If this happens to you, just install it from source using these commands:

mkdir tmp
@kittenparry
kittenparry / Reader.py
Last active Aug 8, 2017
Creates a list of files/directories in the current directory into a text file
View Reader.py
import os
import io
import sys
class Reader():
def __init__(self, file):
archive = ''
for dirname, dirnames, filenames in os.walk(os.getcwd()):
print('.', end='')