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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
export enum Country { | |
Afghanistan = 'AF', | |
AlandIslands = 'AX', | |
Albania = 'AL', | |
Algeria = 'DZ', | |
AmericanSamoa = 'AS', | |
Andorra = 'AD', | |
Angola = 'AO', | |
Anguilla = 'AI', | |
Antarctica = 'AQ', |
#!/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 |
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
$ 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>
const fs = require('fs'); | |
// our demo string is in 'default' utf8 with emoji character assuming you are using an editor that supports those. | |
// if not, you can test this gist by setting utf8string to the equivalent '->\ud83d\ude03\ud83e\uddd2\ud83c\udffc\u00fc\u010d\u0113<-' | |
// gist doesn't support all ZWJ sequences, so can't show this here but it works with those as well, e.g. '\ud83d\udc68\ud83c\udffc\u200d\ud83d\udcbb' | |
const utf8string = '->😃🧒🏼üčē<-'; | |
// this is what you'd usually do to write to a utf-8 encoded file | |
fs.writeFileSync('test-utf8.txt', utf8string); |
<?php | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', |
/* 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 |
<? | |
// | |
// [ BUY BTC & ETH DAILY ON BITSTAMP ] | |
// by @levelsio | |
// | |
// 2017-08-23 | |
// | |
// 1) buy $40/day BTC | |
// 2) buy $10/day ETH | |
// |
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() { |