errors=remount-ro,noatime,nouser_xattr,barrier=0
sudo tune2fs -l /dev/sdXY | fgrep has_journal
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+d", | |
"command": "editor.action.deleteLines", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+alt+f", | |
"command": "editor.action.formatDocument", |
alias update="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y" | |
alias h="history" | |
alias hs="history | grep -i" | |
alias gs='git status' | |
alias ga='git add -A' | |
alias gc='git commit -m' | |
alias gp='git push' | |
alias subs="addic7ed -l en --no-hi" |
#!/bin/bash | |
curl 'http://www.espn.com/nba/scoreboard' --compressed -s | \ | |
grep -Eo '\{"leagues.+}' | \ | |
jq -r '.events | '\ | |
'map(.competitions | '\ | |
'map(.headlines | '\ | |
'map(.video | '\ | |
'map(if .tracking.coverageType == "Final Game Highlight" then '\ | |
'.links.source.HD.href else empty end))))[][][][]' 2> /dev/null |
# Put in /etc/NetworkManager/conf.d/mac.conf | |
[device] | |
wifi.scan-rand-mac-address=yes | |
[connection] | |
wifi.cloned-mac-address=random | |
ethernet.cloned-mac-address=random |
#!/bin/sh | |
grep StartupWMClass /usr/share/applications/firefox-trunk.desktop || sudo sed -i 's/\[Desktop Entry\]/[Desktop Entry]\nStartupWMClass=Nightly/' /usr/share/applications/firefox-trunk.desktop |
# To download video/music files | |
# Put in ~/.aria2/aria2-inorder.conf | |
# Usage: aria2c --conf-path ~/.aria2/aria2-inorder.conf "$URL" | |
continue=true | |
split=8 | |
max-connection-per-server=8 | |
min-split-size=1M | |
stream-piece-selector=inorder |
#!/bin/sh | |
name="$1" | |
curl -s --compressed "https://duckduckgo.com/?q=%5Cimdb $name" | grep -oP 'tt[0-9]+' | head -1 |
#!/bin/bash | |
nba_date=$( \ | |
curl 'https://data.nba.net/10s/prod/v3/today.json' --compressed -s | \ | |
jq .links.anchorDate \ | |
) | |
num_of_games=$( \ | |
curl 'https://data.nba.net/prod/v2/calendar.json' --compressed -s | \ | |
jq ".[$nba_date]" \ |
#!/bin/bash | |
sed -ri 's/\[.+\]:?|\(.+\):?|[a-zA-Z ]+://g' *srt |