Skip to content

Instantly share code, notes, and snippets.

@zachrank
zachrank / wsl2-zsh-powerlevel10k.md
Created August 8, 2022 01:43
WSL 2 + Windows Terminal + Oh My Zsh + Powerlevel10k

WSL 2 + Windows Terminal + Oh My Zsh + Powerlevel10k

wsl2-zsh-powerlevel10k

This gist takes heavy inspiration from kevin-smets / iterm2-solarized.md gist for iTerm2.

Windows Subsystem for Linux 2 (WSL 2)

The first thing that you will want to do is install WSL 2 and a Linux distro.

@jeremyredhead
jeremyredhead / toggle-youtube-controls.js
Created December 18, 2020 01:35
Hide/Toggle ALL YouTube Player Controls & UI
// ==UserScript==
// @name Hide/Toggle YouTube Player Controls/UI
// @description Hide/Toggle YT Player Controls & UI with the "H" key
// @version 0.1
// @match https://www.youtube.com/watch?*
// ==/UserScript==
var css = "#movie_player > :not(.html5-video-container) { display: none !important }"
var style = document.createElement('style')
tl;dr
use the package manager install (.deb or .rpm files, not .run file)
remove stuff using
sudo apt-get --purge remove 'cuda*'
sudo apt-get --purge -y remove 'nvidia*'
sudo apt-get --purge -y remove 'libnvidia*'
using
@lukasrichters14
lukasrichters14 / Atomic Mass Calculator.py
Created September 27, 2018 00:31
An atomic mass calculator made with python.
# Dictionary of all elements matched with their atomic masses.
elements_dict = {'H' : 1.008,'HE' : 4.003, 'LI' : 6.941, 'BE' : 9.012,\
'B' : 10.811, 'C' : 12.011, 'N' : 14.007, 'O' : 15.999,\
'F' : 18.998, 'NE' : 20.180, 'NA' : 22.990, 'MG' : 24.305,\
'AL' : 26.982, 'SI' : 28.086, 'P' : 30.974, 'S' : 32.066,\
'CL' : 35.453, 'AR' : 39.948, 'K' : 39.098, 'CA' : 40.078,\
'SC' : 44.956, 'TI' : 47.867, 'V' : 50.942, 'CR' : 51.996,\
'MN' : 54.938, 'FE' : 55.845, 'CO' : 58.933, 'NI' : 58.693,\
'CU' : 63.546, 'ZN' : 65.38, 'GA' : 69.723, 'GE' : 72.631,\
'AS' : 74.922, 'SE' : 78.971, 'BR' : 79.904, 'KR' : 84.798,\