Skip to content

Instantly share code, notes, and snippets.

View niklasdewally's full-sized avatar

Niklas Dewally niklasdewally

View GitHub Profile
@niklasdewally
niklasdewally / TbColorCategories.md
Last active January 14, 2024 18:38 — forked from PlisJan/TbColorCategories.md
Thunderbird color by categories (working on v115.6.1)

Thunderbird color by categories

  • Navigate to Help > Troubleshooting Information > Profile Directory > Open Directory
  • Close Thunderbird
  • Create a folder named chrome (all lowercase)
  • Create a file named userChrome.css
  • Insert
/* Calendar  - set event category colour instead of calendar colour */
 .calendar-category-box {
 width: 100% !important;
@niklasdewally
niklasdewally / local.mount-<name>.plist
Created July 25, 2023 11:56
Mac Automount with sshfs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.mount-<name></string>
<key>ProgramArguments</key>
<array>
<string>PATH TO SERVICE SCRIPT</string>
</array>
@niklasdewally
niklasdewally / README.md
Last active February 22, 2023 09:30
Symlinking ghcup and cabal

This profile script makes ghcup and cabal packages persist across different lab clients, by symlinking the necessary haskell directories.


  1. Put the above script inside your "profile" directory to be run on startup:

    On the school server:

cd /cs/home/${USER}/.profile.d

@niklasdewally
niklasdewally / update-discord
Last active December 18, 2023 21:49
Discord Installer
#!/bin/bash
shopt -s nullglob
pp (){
if [ -x "$(command -v cowsay)" ]
then
cowsay "$1"
else
echo "=========="
echo "$1"
@niklasdewally
niklasdewally / notebook
Last active December 13, 2021 18:24
Script to launch Jupyter Lab in a default conda enviroment
#!/bin/sh
# https://github.com/conda/conda/issues/7980
source $CONDA_BASE/etc/profile.d/conda.sh
conda activate default
nohup jupyter lab &
@niklasdewally
niklasdewally / README.md
Last active October 15, 2021 11:10
Fedora 35 Workaround for Anki (from Anki forums)