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
@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.

@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."
@rxaviers
rxaviers / gist:7360908
Last active December 3, 2025 07:01
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:
@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;
@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 {
@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
@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.).
@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)
@GingerGraham
GingerGraham / bash_logging.md
Last active November 27, 2025 20:23
Bash Logging

Bash Logging Module

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

Features

  • Standard syslog log levels (DEBUG, INFO, WARN, ERROR, CRITICAL, etc.)
  • Console output with color-coding by severity
  • Optional file output
  • Optional systemd journal logging