SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
<?php | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', |
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
/* JavaScript password hash generator. | |
* $Id: pwd.js,v 1.5 2004/10/09 09:41:38 emikulic Exp $ | |
* | |
* Copyright (c) 2004, Emil Mikulic. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
var http = require( "http" ), | |
args = process.argv.slice(2), | |
mimicAsync = [], | |
result = [], | |
j = 0; | |
args.forEach( function( url, index ) { | |
http.get( url, function( response ) { | |
var stream = ""; |
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
var Raven = require('raven'); | |
// Configure the Raven client from the Sentry DSN. For local development, keep this environment variable unset to prevent | |
// Raven from sending events to sentry | |
var ravenClient = new Raven.Client(configOptions); | |
var originalCaptureException = ravenClient.captureException; | |
// Monkey patch the captureException function for easier development flow. | |
ravenClient.captureException = function() { |
export enum Country { | |
Afghanistan = 'AF', | |
AlandIslands = 'AX', | |
Albania = 'AL', | |
Algeria = 'DZ', | |
AmericanSamoa = 'AS', | |
Andorra = 'AD', | |
Angola = 'AO', | |
Anguilla = 'AI', | |
Antarctica = 'AQ', |
<? | |
// | |
// [ BUY BTC & ETH DAILY ON BITSTAMP ] | |
// by @levelsio | |
// | |
// 2017-08-23 | |
// | |
// 1) buy $40/day BTC | |
// 2) buy $10/day ETH | |
// |