Skip to content

Instantly share code, notes, and snippets.

@c-tamias35
c-tamias35 / authy-fetch-extract-snap.md
Created December 11, 2023 22:29 — forked from ruario/authy-fetch-extract-snap.md
How to download and install Twilio Authy on a desktop Linux system without snap support
  • Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
  • Fetch the current Authy snap
@c-tamias35
c-tamias35 / my-xcfe4-inhibit.sh
Last active January 18, 2024 04:29
systemd-inhibit alternative for XFCE 4
#!/bin/bash
#description :Wrapper to simulate systemd-inhibit (systemd 253) which doesn't work on XFCE 4.18 for now.
# This uses "xfce4-screensaver-command" for inhibiting screensaver/sleep/suspend/etc.
#usage :my-xcfe4-inhibit.sh YOUR_LONG_RUNNING_COMMAND
#note :This script should be chmod'ed to become executable.
# You can create an alias to call this script the way you want.
# e.g. if "alias inhibit='bash /home/user/bin/my-xcfe4-inhibit.sh '", you can then run "$ inhibit YOUR_COMMAND" like systemd-inhibit.
#author :c-tamias35@github
#date :2023-11-26
@c-tamias35
c-tamias35 / install-brother-mfc.sh
Last active November 24, 2023 19:12
Tips to install Brother MFC printer driver on Fedora 38
#!/bin/bash
# Example for installing MFC-J625DW printer on Fedora 38.
# N.B. Brother Driver Install Tool alone is not enough!
# This can fix the status message "Idle - "File "/usr/lib/cups/filter/XXXXXXX" not available: No such file or directory"
# This file content is useful specifically for Fedora 38. May or may not work on other versions or similar OSes.
# Below commands are based on Brother website FAQs. Navigate to hyperlinks "FAQs & Troubleshooting" > Linux > Printer :
# https://support.brother.com/g/b/faqlist.aspx?c=ca&lang=en&prod=mfcj625dw_all&ftype3=100257
@c-tamias35
c-tamias35 / README.md
Created July 13, 2023 01:52 — forked from atenni/README.md
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@c-tamias35
c-tamias35 / selenium-setup.sh
Created June 17, 2023 16:51 — forked from xd003/selenium-setup.sh
Bash Script to setup Python + Selenium + chromedriver on a Headless Chrome Browser
#!/usr/bin/env bash
echo "This script will setup webdriver of your choice for selenium and create a template script with appropriate settings"
sleep 2
echo "This Script only supports Linux 64 bit and arm64/aarch64 kernel architecture currently"
sleep 2
uname="$(uname -m)"
case $uname in
arm64|aarch64|x86_64 )
@c-tamias35
c-tamias35 / rsync-skip-compress
Created February 24, 2023 03:36 — forked from StefanHamminga/rsync-skip-compress
List of compressed file formats for use with Rsync --skip-compress=$RSYNC_SKIP_COMPRESS
export RSYNC_SKIP_COMPRESS=3g2/3gp/3gpp/3mf/7z/aac/ace/amr/apk/appx/appxbundle/arc/arj/asf/avi/br/bz2/cab/crypt5/crypt7/crypt8/deb/dmg/drc/ear/gz/flac/flv/gpg/h264/h265/heif/iso/jar/jp2/jpg/jpeg/lz/lz4/lzma/lzo/m4a/m4p/m4v/mkv/msi/mov/mp3/mp4/mpeg/mpg/mpv/oga/ogg/ogv/opus/pack/png/qt/rar/rpm/rzip/s7z/sfx/svgz/tbz/tgz/tlz/txz/vob/webm/webp/wim/wma/wmv/xz/z/zip/zst