Skip to content

Instantly share code, notes, and snippets.

@mercutiodesign
mercutiodesign / moshInstall2AmazonAMI.sh
Last active June 22, 2021 01:15 — forked from pesblog/moshInstall2AmazonAMI.sh
mosh install to AWS EC2 (Amazon AMI)
#!/bin/sh
sudo yum -y install autoconf automake gcc gcc-c++ make boost-devel zlib-devel ncurses-devel protobuf-devel openssl-devel
cd /usr/local/src
VERSION=1.3.2
PKGNAME=mosh-$VERSION
FNAME=$PKGNAME.tar.gz
sudo wget https://mosh.org/$FNAME
sudo tar xvf $FNAME
cd $PKGNAME
@mercutiodesign
mercutiodesign / rust_udl.xml
Created May 15, 2015 20:30 — forked from heimp/rust_udl.xml
Compare to other definition
<NotepadPlus>
<UserLang name="Rust" ext="rs" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="yes" Keywords5="no" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@mercutiodesign
mercutiodesign / 0_reuse_code.js
Created January 31, 2014 00:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# Build and Object Folders
bin/
obj/
#User Specific Files
*.user
*.suo
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
@mercutiodesign
mercutiodesign / random_imgur.py
Created July 12, 2012 20:19
random imgur downloader
import os
import sys
import random
import time
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz"
start_time = time.time()