Skip to content

Instantly share code, notes, and snippets.

View alirezaomidi's full-sized avatar

Alireza Omidi alirezaomidi

View GitHub Profile
@JohnGiorgi
JohnGiorgi / using_compute_canada_resources.md
Last active November 10, 2023 22:44
Helpful tips/tricks for using Compute Canada resources

Using Compute Canada Resources

Basics

You ssh into the systems using:

ssh <username>@<login node>

E.g., to login to Niagra for user example:

@trongthanh
trongthanh / mojave.xml
Last active November 12, 2024 23:44
macOS Mojave dynamic background re-implement as GTK+ background slideshow. Background images are changed to reflect the time of the day.
<!-- Instructions:
- Download and unzip Mojave dynamic background here: https://files.rb.gd/mojave_dynamic.zip
- Rename the extracted folder as "mojave-background" (Excuse the trouble but I renamed it on my machine and already use that path in the XML file)
- Save this xml file next to the Mojave background files
- Fix the path to the background images below (better using absolute path)
- Lastly, either:
+ GNOME: Use gnome-tweaks tool to select this XML as wallpaper (as default wallpaper settings won't let you choose wallpaper from custom path)
+ MATE: Go to background setting (in Appearance) > Choose +Add... > make sure **All files** filter is selected at the bottom right > Then choose mojave.xml
-->
<background>
@rmcgibbo
rmcgibbo / free-slots.py
Last active October 26, 2021 15:04
Summarize free slots on SLURM queues [script].
#!/usr/bin/python
from __future__ import print_function, division
import os
import re
import sys
import itertools
from pprint import pprint
import subprocess
from distutils.spawn import find_executable
from collections import defaultdict