Skip to content

Instantly share code, notes, and snippets.

View desiderantes's full-sized avatar
🇧🇷
Missing the Arepas

Mario Daniel Ruiz Saavedra desiderantes

🇧🇷
Missing the Arepas
View GitHub Profile
@IanColdwater
IanColdwater / twittermute.txt
Last active October 22, 2026 02:30
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
#elC - The elementary OS Combobulator - There are many issues within the community that tend to come up a lot.
#I know many of them are open bug reports, but until they are patched we can provide a consolidated list of work-arounds.
#I think this will be helpful for newcomers and veterans alike
#enable ppas
sudo apt install -y software-properties-common python3-software-properties python-software-properties
#install elementary tweaks
sudo add-apt-repository -y ppa:philip.scott/elementary-tweaks
sudo apt update -y
@wassname
wassname / permutations.js
Last active June 28, 2022 22:53
Combinatorics permutatons and product in javascript using lodash.js (like python's itertools)
/**
* Lodash mixins for combinatorics
* by: wassname & visangela
* url: https://gist.github.com/wassname/a882ac3981c8e18d2556/edit
* lodash contrib issue: https://github.com/node4good/lodash-contrib/issues/47
* lic: same as lodash
* Inspired by python itertools: https://docs.python.org/2.7/library/itertools.html
*
* Usage:
* permutations([0,1,2],2) // [[0,1],[0,2],[1,0],[1,2],[2,0],[2,1]]
public class ClipboardManager : Object {
private static Gtk.Clipboard monitor_clipboard;
public delegate void MonitorFn();
public static void attach_monitor_selection(MonitorFn fn) {
monitor_clipboard = Gtk.Clipboard.get_for_display (Gdk.Display.get_default (),
Gdk.SELECTION_PRIMARY);
monitor_clipboard.owner_change.connect ((ev) => {
stdout.printf("%s\n", ev.get_event_type ().to_string());
stdout.flush ();
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active November 17, 2026 09:06
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results