Skip to content

Instantly share code, notes, and snippets.

View anoduck's full-sized avatar
πŸ¦†
Quackity, Quack!

Anoduck, The Anonymous Duck anoduck

πŸ¦†
Quackity, Quack!
View GitHub Profile
@GingerGraham
GingerGraham / bash_logging.md
Last active January 19, 2026 15:23
Bash Logging

Bash Logging Module

A flexible, reusable logging module for Bash scripts that provides standardized logging functionality with various configuration options.

Important

This version of the bash logging module is now deprecated and the gist is no longer maintained. Please see the full release bash-logger

Note

This deprecated version has been left for reference purposes only.

@jdmichaud
jdmichaud / 1-zig-cheatsheet
Last active November 30, 2025 10:35
Zig cheatsheet
​
https://ziglang.org/documentation/master/#Pointers
Local std lib docs:
```bash
$ zig std
```
Browse the std lib code
```bash
$ vi $(zig env | jq -r .std_dir)
@ACamposPT
ACamposPT / auto_screen_rotation.sh
Last active October 27, 2025 12:45 — forked from mildmojo/rotate_desktop.sh
Script to rotate the screen and touch devices on modern Linux desktops. Great for convertible laptops.
#!/bin/bash
# Auto rotate screen based on device orientation
# Receives input from monitor-sensor (part of iio-sensor-proxy package)
# Screen orientation is set based upon accelerometer position
# This script should be added to startup applications for the user
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
@anoduck
anoduck / Droid Fusion
Last active August 29, 2015 14:10
What is the Droid Fusion Iso
The Droid Fusion is a network security distro of the Android operating system. Meant to run on phones, that can handle it.
The Download link is as follows:
(It wiil take some time to downbload the link, because the file is 2.7G)
https://docs.google.com/file/d/0BxaBYtCO_aLyYUZaeE5qV1VpTDg/edit?pli=1
@magicznyleszek
magicznyleszek / css-selectors.md
Last active October 11, 2025 17:34
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❀️

Element selectors

Element -- selects all h2 elements on the page

h2 {
@elclanrs
elclanrs / retext.css
Last active September 13, 2021 10:25
Markdown theme for ReText
body {
color: #333;
font: normal 16px/1.3 Arial, sans-serif;
max-width: 6.5in;
margin: 0 auto;
}
a:link, a:visited {
color: #1B70D1;
text-decoration: none;
@rxaviers
rxaviers / gist:7360908
Last active January 22, 2026 14:21
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@don9z
don9z / gist:5945914
Created July 8, 2013 02:55
Workaround for this error: ad-Advice-package--add-to-archive-contents: Symbol's function definition is void: package-desc-vers
;; diff --git a/melpa-autoloads.el b/melpa-autoloads.el
(defadvice package--add-to-archive-contents (around package-filter-add-to-archive-contents (package archive) activate compile) "\
Add filtering of available packages using `package-filter-function',
-if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package-desc-vers (cdr package)) archive)) ad-do-it))
+if non-nil." (when (and package-filter-function (funcall package-filter-function (car package) (package--ac-desc-version (cdr package)) archive)) ad-do-it))
;; diff --git a/melpa.el b/melpa.el
@@ -84,7 +84,7 @@ if non-nil."
@dherman
dherman / emacs-cheat-sheet.md
Created August 2, 2012 16:22
My emacs cheat sheet

In penance for cracking stupid jokes on Twitter, here's my Emacs cheat sheet. Emacs has a steep learning curve, so I've tried to order them by importance so you could learn them in stages.

One overall rule of thumb: pay attention to the minibuffer (the line at the bottom of the editor). It will often guide you through a process, and also gives you hints about what state you're in, such as the middle of a multi-chord sequence.

The other rule of thumb: when in doubt, C-g it out.

Basics (mandatory)

You simply can't get by without having these at your fingertips.