# efi boot - fat32 - 512MB
/dev/sda1
# root - ext4 - rest of drive
/dev/sda2
# swap - swapfile - same as main memory
This file contains hidden or 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
# Font Settings | |
# Font family | |
font: | |
normal: | |
family: DejaVu Sans Mono Nerd Font Complete | |
bold: | |
family: DejaVu Sans Mono Bold Nerd Font Complete |
This file contains hidden or 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
ftStart=".avi" | |
ftEnd=".mp4" | |
for file in $(find . -name '*.sm'); do | |
echo changing ${ftStart} to ${ftEnd} in ${file} | |
sed -i "s/${ftStart}/${ftEnd}/g" ${file} | |
done |
This file contains hidden or 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
#!/bin/bash | |
str=`xrandr | grep '*'` | |
IFS='x' | |
read -ra ADDR <<< "$str" | |
IFS=' ' | |
read -ra ADDR2 <<< "${ADDR[1]}" | |
while getopts 'hv' flag; do | |
case "${flag}" in |
This file contains hidden or 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
res_h=`~/.scripts/getres.sh -h` | |
res_v=`~/.scripts/getres.sh -v` | |
height=128 | |
width=256 | |
let "pos_x=(${res_h}/2)-(${width}/2)" | |
let "pos_y=(${res_v}/2)-(${height}/2)" | |
date +"%r %dth %B, %Y" | dzen2 -p 4 -h $height -w $width -x $pos_x -y $pos_y |
This file contains hidden or 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
// first frame | |
const a = []; | |
// second frame | |
const b = []; | |
// third frame | |
const c = []; | |
// queue to track oldest frame |
This file contains hidden or 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
module.exports = { | |
purge: { | |
mode: 'all', | |
content: ['./**/**/*.html', './**/**/*.svelte'], | |
options: { | |
whitelistPatterns: [/svelte-/], | |
defaultExtractor: (content) => [...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(([_match, group, ..._rest]) => group), | |
}, | |
}, |
This file contains hidden or 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
// score data | |
const dolphinsScores = [97, 112, 101]; | |
const koalasScores = [109, 95, 106]; | |
// helper function to average array values | |
const avgScore = (array) => | |
// array.reduce iterated through an array and adds each value together. | |
// then divide the result agaisn't the legnth of the array to get the average. | |
array.reduce((acc, val) => acc + val) / array.length; |
This file contains hidden or 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
############################## | |
# # | |
# .foolzprompt # | |
# customized bash PS1 prompt # | |
# # | |
############################## | |
# function to detect the git branch of the current directory | |
parse_git_branch() { |
OlderNewer