sudo pkcon refresh
sudo pkcon update
sudo apt install --ignore-missing \
curl \
git \
kate \
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
test "fields" { | |
const U1s = packed struct { | |
a: u1, | |
b: u1, | |
c: u1, | |
}; | |
const x = U1s{ .a = 1, .b = 0, .c = 0 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rm --force $(docker ps --all --quiet); docker rmi --force $(docker images --all --quiet); docker volume rm $(docker volume ls --quiet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
DIRNAME="$(realpath "$(dirname -- "${BASH_SOURCE[0]}")")" | |
PROJECT_ROOT="$(realpath "${DIRNAME}/..")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fileURLToPath } from "node:url"; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = fileURLToPath(new URL(".", import.meta.url)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#btrfs benchmark for daily used desktop OS |
A step by step guide wallthrough on how to access / read a NYT paywalled article
- Open the NYT article you want to read in incognito mode
- Open up your devtool console ([cmd][shift][j] on chrome/mac)
- Open up the devtools command prompt ([cmd][shift][P] on chrome/mac)
- Type in the command
disable javascript
into the command prompt, but don't hit enter - Reload the page
- After the content loads but before the paywall appears, enter your
disable javascript
command - If paywall persists, return to step 3. Otherwise, enjoy your free article.
- Happy reading!
Use your text editor of choice or if you don't have one use Windows Notepad
Opening with Notepad may or may not result in a fancy mess
- Close Spotify
- Open File Explorer and paste the following into the address bar
%appdata%/Spotify
¤ - Open the file named prefs with your text editor
- Change the numeric value following storage.size= . If storage.size= doesn't exist add it manually to the end of the file and assign numeric value. This value represents megabytes. One gigabyte equals 1024 megabytes. In the end, it should look something like this
storage.size=1024
- Save the file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Custom Scrollbar</title> | |
<style> | |
.scroll-box { | |
position: relative; | |
/* border-right: 1px solid #000; */ |
NewerOlder