Skip to content

Instantly share code, notes, and snippets.

View raifcoonjah's full-sized avatar
🤟
(●°u°●)​ 」

Raif Coonjah raifcoonjah

🤟
(●°u°●)​ 」
  • OceanDBA
  • Port-Louis, Mauritius
  • 05:26 (UTC +04:00)
  • X @raifcoonjah
View GitHub Profile
@raifcoonjah
raifcoonjah / update-forgejo.sh
Created September 14, 2024 19:20
A simple script to update forgejo to version specified
#!/bin/bash
set -e
FORGEJO_VERSION="$1"
# Check if the first argument is empty
if [ -z "$1" ]; then
echo "No forgejo version specified, goodbye!"
exit 1
@raifcoonjah
raifcoonjah / lol.md
Created March 16, 2022 18:32
experimental-feature

// add button to change background to image from unsplash and save change to local storage var unsplashBtn = document.getElementById("unsplash"); unsplashBtn.addEventListener("click", function () { document.body.style.backgroundImage = "url(https://source.unsplash.com/random'" + "screenSize" + "screenHeight" + +"?ocean" + ")"; localStorage.setItem("background", "https://source.unsplash.com/random");

We couldn’t find that file to show.
@raifcoonjah
raifcoonjah / .zshrc
Created August 30, 2021 18:56
.zshrc configs. 2021.aug.30
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/raif/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# Add this to the bottom of zsh config...
# v2021
# Custom configs v2021
# Fix autocomplete on zsh
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-}'
# Default apps
## Whitelist for Mauritian PI-HOLE users, this includes, MCB, SBM links and more..
juice.mcb.mu
mcb.mu
sbm.mu
mobile.sbm.mu
pop.mu
api.pop.mu
sbm.mu
mcb.mu
absa.mu
@raifcoonjah
raifcoonjah / gist:ab3e05adee4f054addc7b15f7f770db4
Last active January 25, 2021 13:26
microsoft todo-dark mode
.ms-Panel-main,
/* Modals */
.ms-Dialog-main
{
box-shadow: none;
}
body
{
background-color: #121212;