Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
server { | |
listen 80; | |
server_name example.com www.example.com; | |
if ($http_x_forwarded_proto = "http") { | |
return 301 https://$server_name$request_uri; | |
} | |
... directives to generate a response | |
} |
Getting started:
Related tutorials:
FYI, I'm successfully packaged watchman with fpm (it's awesome): | |
gem install fpm | |
git clone https://github.com/facebook/watchman.git | |
cd watchman | |
git checkout v4.1.0 | |
sudo apt-get install python-dev | |
./autogen.sh | |
./configure --prefix=/usr | |
make |
$('#testing').keydown(function(e) { | |
if (e.keyCode === 190) { | |
e.preventDefault(); | |
} | |
}); | |
$('#testing').on('input propertychange paste', function (e) { | |
var reg = /^[1-9]+/gi; | |
if (this.value.match(reg)) { | |
this.value = this.value.replace(reg, ''); |
Source: http://forum.lowyat.net/index.php?showtopic=355950&view=findpost&p=11151482
A few forumers asked me questions regarding reading of MyKad surface information. The answer is there is no encryption; it is just about knowing what (APDU) command to send.
There will be 5 APDU commands that I'll introduce. I name them as:
name: "GoogleNet" | |
input: "data" | |
input_dim: 10 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
# hierarchy 1 | |
# conv -> relu -> pool -> lrn |
#!/usr/bin/env bash | |
# | |
# Get the value of a tag for a running EC2 instance. | |
# | |
# This can be useful within bootstrapping scripts ("user-data"). | |
# | |
# Note the EC3 instance needs to have an IAM role that lets it read tags. The policy | |
# JSON for this looks like: | |
# | |
# { |
/** | |
* Perl | |
* ucfirst codeigniter | |
*/ | |
perl -e 's/\.[^\.]*$/rename $_, ucfirst($`) . $&/e for glob "*.php"' |
#!/bin/bash | |
AWS_DEFAULT_REGION="ap-northeast-1" | |
AWS_ACCESS_KEY_ID="YOUR ACCESS KEY HERE" | |
AWS_SECRET_ACCESS_KEY="YOUR SECRET ACCESS KEY HERE" | |
INSTANCE_ID_URL="http://169.254.169.254/latest/meta-data/instance-id" | |
INSTANCE_ID=$(curl -s ${INSTANCE_ID_URL}) | |
SERVER_STATUS_URL="http://localhost/php-fpm-status" |