For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
# How to perform a release with git & maven following the git flow conventions | |
# ---------------------------------------------------------------------------- | |
# Finding the next version: you can see the next version by looking at the | |
# version element in "pom.xml" and lopping off "-SNAPSHOT". To illustrate, | |
# if the pom's version read "0.0.2-SNAPSHOT", the following instructions would | |
# perform the release for version "0.0.2" and increment the development version | |
# of each project to "0.0.3-SNAPSHOT". | |
# branch from develop to a new release branch | |
git checkout develop |
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
public class NumberWordingTranslator { | |
private final static String[] hundredWords={ | |
"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", | |
"Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen", | |
"Twenty", null, null, null, null, null, null, null, null, null, | |
"Thirty", null, null, null, null, null, null, null, null, null, | |
"Forty", null, null, null, null, null, null, null, null, null, | |
"Fifty", null, null, null, null, null, null, null, null, null, | |
"Sixty", null, null, null, null, null, null, null, null, null, |
import java.lang.reflect.Type; | |
import android.util.Base64; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.JsonDeserializationContext; | |
import com.google.gson.JsonDeserializer; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonParseException; |
FROM ubuntu | |
MAINTAINER "Bobby Wilson" | |
RUN apt-get update | |
RUN apt-get install curl -y | |
RUN cd /usr/local; curl -O http://nodejs.org/dist/v0.10.16/node-v0.10.16-linux-x64.tar.gz | |
RUN cd /usr/local; tar xzf node-v0.10.16-linux-x64.tar.gz | |
ENV PATH /usr/local/bin:/usr/sbin:/bin:/usr/local/node-v0.10.16-linux-x64/bin | |
ADD . /app | |
EXPOSE 8000:8000 | |
ENV PORT 8000 |
#!/bin/bash -ex | |
# Wrapper for 'docker save' fixing, | |
# https://github.com/dotcloud/docker/issues/3877 | |
# In addition: this script will always save exactly one image (possibly | |
# multiple tags). | |
IMAGE=$1 | |
TARGET=$2 | |
NAME=`echo $IMAGE | awk -F':' '{print $1}'` | |
ID=`docker inspect $IMAGE | python -c "import sys,json; print json.load(sys.stdin)[0]['id']"` |
// | |
// LoggingPrint.swift | |
// | |
import Foundation | |
/** | |
Prints the filename, function name, line number and textual representation of `object` and a newline character into | |
the standard output if the build setting for "Active Complilation Conditions" (SWIFT_ACTIVE_COMPILATION_CONDITIONS) defines `DEBUG`. |
Ubuntu 14.04
.Secure Group Inbound Rules
, add a SSH Rule(TCP, Port 22, 0.0.0.0/0)
and a Custom TCP Rule(TCP, Port 1723, 0.0.0.0/0)
.sudo apt-get install pptpd
.sudo vim /etc/pptpd.conf
. Uncomment localip 192.168.0.1
and remoteip 192.168.0.234-238,192.168.0.245
.sudo vim /etc/ppp/pptpd-options
. Uncomment ms-dns
and ms-wins
. Change the IP to Google's DNS like this: