1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
-- Journal begins at Sat 2021-06-12 17:25:40 CST, ends at Thu 2021-07-15 23:05:02 CST. -- | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: RRNotify_OutputChange | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: Output: 677 | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: CRTC: 0 | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: Mode: 0 | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: Rotation: "Rotate_0" | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: Connection: "Connected" | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: Subpixel Order: 0 | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: RRScreenChangeNotify | |
Jul 15 23:03:06 ArcoB kscreen_backend_launcher[3064]: kscreen.xcb.helper: Window: 25165829 |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
Checkout the llvm
folder from the release/11.x
branch in https://github.com/llvm/llvm-project
git init llvm-project
cd llvm-project
git remote add origin https://github.com/llvm/llvm-project
git fetch --depth=1
git config core.sparseCheckout true
Date | A | B |
---|---|---|
2016 | Something | ABC |
#!/usr/bin/python3 | |
import math | |
# Taken in part from: https://www.geeksforgeeks.org/python-program-for-basic-and-extended-euclidean-algorithms-2/ | |
def gcdExtended(a, b): | |
""" | |
Calculates the GCD of the two given numbers, as well as the coefficients x and y | |
such that ax + by = gcd(a,b). This is useful in cryptography | |
See: https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm |
Install both xscreensaver
and xsecurelock
using your package manager
Make sure xscreensaver
is not set to lock the screen or to manage the display. Xfce aleady does all those, so there is no need to enable it again.
Also make sure that the xscreensaver
daemon is not autostarted. Not doing this may result in the screen not being locked.
Set the following environmental variables (in ~/.xprofile
or ~/.xsession
) for xsecurelock
:
# xsecurelock options
export XSECURELOCK_SAVER=saver_xscreensaver
We love our dark themes on Linux, but unfortunately firefox does not play well with these themes and sometimes you may find that the text is dark on a dark background. The fix for this is to Follow the tips found here:
In order to find out where exo
reads desktop applications from, I had to run the application from my terminal using the command:
strace exo-preferred-applications 2>&1 | grep 'openat.*\.desktop'
This allowed me to identify two folders where exo
reads preferred applications from:
import crypto from 'crypto'; | |
import assert from 'assert'; | |
const header = {"alg":"HS256","typ":"JWT"}; | |
const payload = {"loggedInAs":"admin","iat":1422779638}; | |
const unsignedToken = Buffer.from(JSON.stringify(header)).toString('base64') + | |
'.' + Buffer.from(JSON.stringify(payload)).toString('base64'); | |
const hmac = crypto.createHmac('sha256', 'secretkey'); |
.zshrc
file to achieve some form of lazy evaluation.local function lazy_load() {
local -xr thunk="$(cat)"
# (u) removes duplicates
local -xr triggers=(${(u)@})
# Only if length of triggers is greater than zero
# otherwise the function will immediately execute.