Skip to content

Instantly share code, notes, and snippets.

@yogthos
yogthos / clojure-beginner.md
Last active February 27, 2026 19:12
Clojure beginner resources

Introductory resources

@username1290
username1290 / Disable accents.txt
Created September 18, 2019 21:16
Disable accent long press key
https://apple.stackexchange.com/questions/332769/macos-disable-popup-showing-accented-characters-when-holding-down-a-key
# In macOS, when a key is held down while entering text, a popup is shown which lets one choose between various accented
# forms of the character. To disable this execute the following command-line in the Terminal.app:
defaults write -g ApplePressAndHoldEnabled -bool false
# Now, you'll need to log-out and log back in. This should disable the display of the popup and character typed should
# start repeating when the key is held down.
@ahmed-musallam
ahmed-musallam / compress_pdf.md
Last active March 3, 2026 11:45
How to compress PDF with ghostscript

How to compress PDF using ghostscript

As a developer, it bothers me when someone sends me a large pdf file compared to the number of pages. Recently, I recieved a 12MB scanned document for just one letter-sized page... so I got to googlin, like I usually do, and found ghostscript!

to learn more abot ghostscript (gs): https://www.ghostscript.com/

What we are interested in, is the gs command line tool, which provides many options for manipulating PDF, but we are interested in compressign those large PDF's into small yet legible documents.

credit goes to this answer on askubuntu forum: https://askubuntu.com/questions/3382/reduce-filesize-of-a-scanned-pdf/3387#3387?newreg=bceddef8bc334e5b88bbfd17a6e7c4f9

@bltavares
bltavares / README.org
Last active September 5, 2016 17:22
How to remote pair over SSH

How to remote pair, over SSH?

If you are capable of direct access

Just connect; Done;

But… I’m behind NAT, and Firewalls and everything!

I thought so… The internet is not that easy of a place huh?! They told everybody would be connected, and promised again with IPv6, but I’m disgressing.

@paulirish
paulirish / what-forces-layout.md
Last active March 15, 2026 16:37
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@rafaelrosafu
rafaelrosafu / python_ref.md
Last active April 1, 2023 18:17
Referências para aprender Python

Referências para aprender Python

Me perguntaram dicas sobre como aprender Python para quem nunca programou antes. Não é a minha especialidade, mas graças aos meus amigos no Twitter e no Facebook, consegui juntar uma lista de referências que espero ser útil.

Se alguém tiver mais referências, por favor, deixem comentários ou me mande uma mensagem em @rafaelrosafu.

Livros

@bjorgvino
bjorgvino / yosemite ntfs read+write.txt
Last active September 22, 2025 15:45
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
@rafaelrosafu
rafaelrosafu / 01_podcasts_august_2015.md
Last active October 10, 2018 19:02
Podcast list as of August 11th 2014. Just to be clear, most podcasts on this list don't have new episodes every week, some are almost gone.
@rm-hull
rm-hull / blocks.cljs
Last active April 2, 2025 14:46
Core.async example from Timothy Baldridge's Clojure/Conj 2013 talk: http://youtu.be/enwIIGzhahw, demonstrating 4800 'green' threads. Code modified from: https://github.com/halgari/clojure-conj-2013-core.async-examples/blob/master/src/clojure_conj_talk/core.clj#L585
(ns clojure-conj-talk.core
(:use [enchilada :only [canvas ctx canvas-size]]
[monet.canvas :only [fill-style fill-rect]]
[jayq.core :only [show]])
(:require [cljs.core.async :refer [<! >! chan timeout]])
(:require-macros [cljs.core.async.macros :as m :refer [go]]))
(def colors
(rand-nth [
[
@millermedeiros
millermedeiros / osx_setup.md
Last active December 17, 2025 00:06
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...