1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| //converts scroll data to +1 or -1 and prints to the console | |
| window.addEventListener("wheel", event => { | |
| const delta = Math.sign(event.deltaY); | |
| console.info(delta); | |
| }); |
| #!/bin/bash | |
| # Removes old revisions of snaps | |
| # CLOSE ALL SNAPS BEFORE RUNNING THIS | |
| set -eu | |
| LANG=C snap list --all | awk '/disabled/{print $1, $3}' | | |
| while read snapname revision; do | |
| snap remove "$snapname" --revision="$revision" | |
| done |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf |
| //load as ES6 | |
| function load_as_ES6($tag, $handle, $source) { | |
| if('some-script-handle' === $handle) { | |
| $tag = '<script src="' . $source . '" type="module" ></script>'; | |
| } | |
| return $tag; | |
| } | |
| add_filter('script_loader_tag', 'load_as_ES6', 10, 3); |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
| * Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
| */ | |
| $args = array( |
| #This is a fake config for demonstration purposes only. This hostname isn't real. | |
| Host hostname-staging | |
| User user-2flis9vgsdf | |
| Hostname 9v0asdles.hostname.io | |
| IdentityFile ~/.ssh/hostname | |
| IdentitiesOnly yes |
| <? | |
| $args = [ | |
| 'post_type' => 'any', | |
| 'post_status' => 'publish', | |
| 'order' => 'ASC', | |
| 'post__not_in' => [253, 236] | |
| ]; | |
| $loop = new WP_Query( $args ); | |
| if ( $loop->have_posts() ) : |
| <? | |
| //load as ES6 | |
| function load_as_ES6($tag, $handle, $source) { | |
| if('tagname' === $handle) { | |
| $tag = '<script src="' . $source . '" type="module" ></script>'; | |
| } | |
| return $tag; | |
| } | |
| add_filter('script_loader_tag', 'load_as_ES6', 10, 3); |
| #!/bin/bash | |
| #update all the things | |
| sudo apt update && | |
| sudo apt upgrade -y && | |
| #install all the dependencies |