Type:
HTTP
, Protocol:TCP
, Port:80
, Source:0.0.0.0/0
Type:HTTPS
, Protocol:TCP
, Port:443
, Source:0.0.0.0/0
# Install mutt using brew | |
$ brew install mutt | |
# Configure mutt | |
$ vim ~/.muttrc | |
# Put the following on the mutt config file (.muttrc) | |
set imap_user = “YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN.com” | |
set imap_pass = “YOUR_PASSWORD” | |
set smtp_url = “smtp://YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN@smtp.gmail.com:587/” |
# install torch on ec2 g2 instance | |
# installing torch | |
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash # prereqs | |
git clone https://github.com/torch/distro.git ~/torch --recursive | |
cd ~/torch; ./install.sh | |
source ~/.bashrc | |
# confirm torch is installed | |
th |
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"
Thx to crxviewer for the magic download URL.
#Installing nginx on OS X
brew install nginx sudo cp -v /usr/local/opt/nginx/*.plist /Library/LaunchDaemons/ sudo chown root:wheel /Library/LaunchDaemons/homebrew.mxcl.nginx.plist mkdir -p /usr/local/etc/nginx/logs mkdir -p /usr/local/etc/nginx/sites-available mkdir -p /usr/local/etc/nginx/sites-enabled mkdir -p /usr/local/etc/nginx/conf.d mkdir -p /usr/local/etc/nginx/ssl
Basically, this takes a MIDI input file (I just googled and grabbed one of Maroon 5's "Animal" – I know, I know) and generates a WAV file.
NOTE: This is the slowest midi rendering program I have ever seen!
Dependencies:
- Pydub (pydub.com)
SchemaSpy is a neat tool to produce visual diagrams for most relational databases.
Here's how to use it to generate schema relationship diagrams for PostgreSQL databases:
-
Download the jar file from here (the current version is v6.1.0)
-
Get the PostgreSQL JDBC driver (unless your installed version of java is really old, use the latest JDBC4 jar file)
-
Run the command against an existing database. For most databases, the schema (-s option) we are interested in is the public one:
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ | |
/** | |
* 1. Set default font family to sans-serif. | |
* 2. Prevent iOS text size adjust after orientation change, without disabling | |
* user zoom. | |
*/ | |
html { | |
font-family: sans-serif; /* 1 */ |