Skip to content

Instantly share code, notes, and snippets.

View aculich's full-sized avatar
😀
Having fun exploring repos for Computational Text Analysis with D-Lab CTAWG

Aaron Culich aculich

😀
Having fun exploring repos for Computational Text Analysis with D-Lab CTAWG
View GitHub Profile
@aculich
aculich / .cvimrc
Last active April 9, 2020 12:11
a CVim (old) configuration that makes me happy because it fits my working style
set numerichints
set typelinkhints
set sortlinkhints
set noautofocus
set nosmoothscroll
set regexp
set smartcase
set incsearch
set cncpcompletion
map h previousTab

Keybase proof

I hereby claim:

  • I am aculich on github.
  • I am aculich (https://keybase.io/aculich) on keybase.
  • I have a public key whose fingerprint is 0ECD 94E4 CA66 5EDE 7B0E 4EEA 433A DD5F B2DC 45FC

To claim this, I am signing this object:

@aculich
aculich / gist:fdd6d79b0f57da7ae07e
Created February 13, 2015 04:43
ring a bell 3 (by default) or more times
#!/bin/bash
times=${1-3}
for i in `seq $times`; do echo -e "\a"; sleep 0.3; done
@aculich
aculich / evernote_highlights.py
Created March 31, 2015 19:39
extract highlighted content from evernote exported .enex files
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# quick and dirty extraction script that should be replaced by proper XSLT templates
# sudo apt-get install -y python3-dateutil
from lxml import etree
import dateutil
import re
@aculich
aculich / AWS.js
Last active August 29, 2015 14:19 — forked from zircote/AWS.js
/**=
* User: zircote
* Date: 16/10/2013
* Time: 08:59
*/
var SERVICE_HOST = 'http://aws.amazon.com'
var data_sources = {
"linux-od": {
@aculich
aculich / Switch to User.scpt
Last active September 11, 2018 03:27 — forked from oschrenk/Switch to User.scpt
switch-to-user script
--This script MUST be named "Switch to <User>.scpt", where <User> is the name of the user to switch to.
--You must first make a password item (a.k.a. a key) for the other user's password using Keychain Access,
--and call it "<user>", where "<user>" is the other user's name.the field "Kind" must be "User Login" (without quotes).
--The script assumes that you make this key in your login.keychain, which is the default one.
--The first time you run this script, you will be prompted to allow Keychain Scripting to access the password of the key.
--This script requires "Enable access for assistive devices" to be enabled in the Universal Access system preference pane.
set username to word -1 of my findReplace(".scpt", "", (path to me as text))
-- Invoke Fast User Switching. The `id -ur username` part gets the uid number that corresponds to the username and substitutes it at the end of the CGSession command
@aculich
aculich / aws_repoint_to_my_ip.sh
Last active October 26, 2015 21:36 — forked from hibernado/aws_repoint_to_my_ip.sh
Repoint AWS EC2 Security Group inbound access to my current IP address
#!/bin/bash
# Summary:
# Bash script repoints all inbound access for a given AWS EC2 security group
# to your current IP addr(v4) as provided by ifconfig.me/ip
# To use this script:
# Pass the name of a security group as a command line argument
# e.g. $ aws_repoint_to_my_ip.sh SECURITYGROUPNAME
@aculich
aculich / gen-selfsigned-ssl.sh
Last active June 27, 2016 00:10
Generate a self-signed SSL certificate with a key that has a random password
#!/bin/sh
HOST=${1:-localhost}
PASSWORD=$(cat /dev/urandom | tr -dc '[:alnum:]' | fold -w 128 | head -n 1)
csr="${HOST}.csr"
key="${HOST}.key"
cert="${HOST}.cert"
@aculich
aculich / pricing.txt
Created July 3, 2016 21:09 — forked from thbkrkr/pricing.txt
Amazon AWS vs Google Compute Engine (GCE) vs DigitalOcean vs OVH RunAbove
------------
Amazon (http://calculator.s3.amazonaws.com/index.html)
------------
type price CPU RAM Disk I/O EBS opt.
t2.micro 10$ 1 1.0 -- Low --
t1.micro 15$ 1 0.6 -- Very Low --
t2.small 10$ 1 2.0 -- Low --
m1.small 34$ 1 1.7 1 x 160 Low --
t2.medium 41$ 2 4.0 -- Low --
m3.medium 56$ 1 3.7 SSD 1 x 4 Moderate --
@aculich
aculich / jetstream-api.log
Last active July 22, 2016 19:17
log of session that failed to
$ nova net-list
+--------------------------------------+-----------+------+
| ID | Label | CIDR |
+--------------------------------------+-----------+------+
| df082c3f-f235-476c-97a0-160a8d567c88 | benchmark | None |
| 4367cd20-722f-4dc2-97e8-90d98c25f12e | public | None |
+--------------------------------------+-----------+------+
$ nova boot --flavor 1 --image 3e2cfdd5-f726-4535-b035-26f72917aa96 --nic net-id=df082c3f-f235-476c-97a0-160a8d567c88 --key-name default --availability-zone nova ubuntu-benchmark
+--------------------------------------+---------------------------------------------------------------------+
| Property | Value |