Skip to content

Instantly share code, notes, and snippets.

@oomathias
oomathias / lib-rs_sort-by-downloads.js
Last active June 26, 2022 19:32
lib.rs - sort by downloads
// ==UserScript==
// @name lib.rs - sort by downloads
// @version 0.1
// @description Sort by downloads
// @match https://lib.rs/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=lib.rs
// @grant none
// ==/UserScript==
(function() {
@oomathias
oomathias / CommitMessageEmojis.md
Last active December 1, 2016 14:34
Commit Message Emojis
Commit Type Emoji
Git related
Initial Commit 🎉 :tada:
Merge 🍭 :lollipop:
Versions related
Upgrading Dependencies ⬆️ :arrow_up:
Downgrading Dependencies ⬇️ :arrow_down:
Version Tag 🔖 :bookmark:
Release 📦 :package:
@oomathias
oomathias / Mandrill_inbound_to_outbound.php
Created June 25, 2013 21:50
Get your email with your own domain thanks to Mandrill. You need to host the script somewhere, and point Mandrill Inbound webhook to it. Don't forget to include the Mandrill PHP library. If you user composer, you just have to do composer install.
<?php
require 'vendor/mandrill/mandrill/src/Mandrill.php';
define('API_KEY', '123456789QWERTY');
define('TO_EMAIL', '[email protected]');
define('TO_NAME', 'Foo Bar');
if(!isset($_POST['mandrill_events'])) {
echo 'A mandrill error occurred: Invalid mandrill_events';
@oomathias
oomathias / CloudFlare x Dynamic DNS
Last active February 20, 2016 20:09
How to make your own DynDNS with CloudFlare.
#!/bin/sh
# Config
cfkey=89e495e7941cf9e40e6980d14a16bf023ccd4c91
[email protected]
cfhost=example.com
cfname=local.example.com
cfid=123456789
# cfid = DNS Record ID. Available by using the rec_load_all call.