I hereby claim:
- I am chesney on github.
- I am chesneycar (https://keybase.io/chesneycar) on keybase.
- I have a public key ASC4xCdoUTzaX-gRpenIG5ZGMo11fhA7e9FZhec2uN-Avgo
To claim this, I am signing this object:
echo "for id in `docker ps -a | awk '{print $1}' | tail -n+2`; docker rm $id" |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// JS array equivalents to C# LINQ methods - by Dan B. | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, | |
{ name: "Judy", age: 42 }, | |
{ name: "Tim", age: 8 } |
javascript:(function() { | |
/* add this code starting at 'javscript:' as address to a bookmark entry */ | |
var currentUrl = window.location.href; | |
var targetUrl = null; | |
var BreakException = {}; | |
var replaceMatrix = [ | |
{ search: '/de/', replace: '/en/'}, | |
{ search: '/de-de/', replace: '/en-us/'} | |
]; |
// Convert from/to binary/decimal/hexadecimal. ES6 | |
const convert = { | |
bin2dec : s => parseInt(s, 2).toString(10), | |
bin2hex : s => parseInt(s, 2).toString(16), | |
dec2bin : s => parseInt(s, 10).toString(2), | |
dec2hex : s => parseInt(s, 10).toString(16), | |
hex2bin : s => parseInt(s, 16).toString(2), | |
hex2dec : s => parseInt(s, 16).toString(10) | |
}; |
package com.ucont; | |
import android.content.ContentProvider; | |
import android.content.ContentUris; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.SQLException; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteException; |
This is a hands-on way to pull down a set of MySQL dumps from Amazon S3 and restore your database with it
Sister Document - Backup MySQL to Amazon S3 - read that first
# Set our variables
export mysqlpass="ROOTPASSWORD"
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc