Skip to content

Instantly share code, notes, and snippets.

View jcuenod's full-sized avatar

James Cuénod jcuenod

View GitHub Profile
@m-bartlett
m-bartlett / 0b.bin
Last active February 12, 2024 07:26
Dell XPS 15 9510 / Dell Precision 5560 ELAN touchpad firmware updates (might fix touchpad input lag)
@gernotstarke
gernotstarke / Makefile
Created January 1, 2022 09:45
Makefile for authoring markdown with a (BibTeX-based) citation manager like Zotero
# For a description of this file, please see:
# https://www.innoq.com/en/blog/markdown-with-zotero-workflow
#------------------------------------------------------------
# what's the name of the generated output file(s)
OUTPUT=out
# what's the name of the markdown source file
SOURCE=principles-content.md
@tgcallaway
tgcallaway / dlit.sh
Last active February 25, 2022 20:09
Download youtube videos in 1080p with ytdl, combine with ffmpeg
#!/bin/sh
# First: Open Terminal. Then:
# Install NPM. Easiest way is to first install homebrew on a mac
# and then do
# brew install npm
# brew install ffmpeg
#
# Then make a folder where you wanna download videos.. and navigate
# to it with your terminal.
#
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active May 3, 2024 12:55
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@mlynch
mlynch / generate.js
Last active February 7, 2019 18:11
Stencil component generator
/*
To setup, place in scripts/generate.js and add
"st:generate": "node scripts/generate.js"
To your npm scripts.
To generate a component in src/components/ run
npm run st:generate component my-component
@vielhuber
vielhuber / script.txt
Last active April 17, 2024 12:20
ImageMagick: Increase pdf scan contrast and sharpening #tools
convert -density 150 input.pdf -brightness-contrast 5x25 -sharpen 0x1 output.pdf
convert -density 300 input.pdf -colorspace gray -normalize -level 50%,51% -sharpen 0x1 output.pdf
convert -density 300 input.pdf -colorspace gray -normalize -level 25%,26% -sharpen 0x1 output.pdf
convert -density 300 input.pdf -colorspace gray -normalize -modulate 150 -sharpen 0x1 output.pdf
convert -density 300 input.pdf -contrast -contrast -contrast -contrast -sharpen 0x1 output.pdf
@5310
5310 / .XCompose
Last active October 3, 2022 18:38
[Defunct] My sequences for use with the Compose key. Based off of kragen/xcompose and then overridden. Now part of Bash-It dotfiles repo. #dotfile
# ~/.XCompose
### Based on the en_US.UTF locale. ###
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
### Populated with Kragen's additions. ###