Skip to content

Instantly share code, notes, and snippets.

View hamitozdemir's full-sized avatar
"If I had more time to waste my time..."

Hamit Özdemir hamitozdemir

"If I had more time to waste my time..."
  • Türkiye
View GitHub Profile
// ==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/*
  • 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.

@hamitozdemir
hamitozdemir / ctrl-r.md
Last active September 11, 2019 08:43
Some terminal shortcuts
  • 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!
/*
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
@hamitozdemir
hamitozdemir / general_notes.md
Created July 20, 2019 09:48
To do, to check list of sorts, I guess
  • Quokka.js for VSCode to display the values of variables and overall everything as one types.
@hamitozdemir
hamitozdemir / pacman_cmds.sh
Last active March 10, 2019 07:51
Some pacman commands noted down from @LukeSmithxyz's video
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
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,
@hamitozdemir
hamitozdemir / i3-gaps_installation_guide.md
Created February 13, 2019 14:11 — forked from boreycutts/i3-gaps_installation_guide.md
A simple installation guide for i3-gaps

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
@hamitozdemir
hamitozdemir / Reader.py
Last active August 8, 2017 00:27
Creates a list of files/directories in the current directory into a text file
import os
import io
import sys
class Reader():
def __init__(self, file):
archive = ''
for dirname, dirnames, filenames in os.walk(os.getcwd()):
print('.', end='')