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() {

DigitalOcean S5

  • 5$
  • 1 CPU
  • 512Mb memory
  • 1T transfer
  • 20GB SSD

CPU info

@oomathias
oomathias / init.coffee
Last active September 19, 2021 15:42
Atom sync-settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@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 / keybase.md
Last active September 25, 2016 13:56

Keybase proof

I hereby claim:

  • I am oomathias on github.
  • I am m7b (https://keybase.io/m7b) on keybase.
  • I have a public key ASC09o8ply9hCEARpgocHtvfu5TdpS3CmnGm-6i0f3NBsAo

To claim this, I am signing this object:

@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', 'user@example.com');
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
cfuser=user@example.com
cfhost=example.com
cfname=local.example.com
cfid=123456789
# cfid = DNS Record ID. Available by using the rec_load_all call.