This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the jar | |
mvn install:install-file -Dfile=/Applications/IBMSPSSStatistics/Subscription/SPSSStatisticsSubscription.app/Contents/bin/spssjavaplugin.jar -DgroupId=com.ibm.statistics -DartifactId=spssjavaplugin -Dversion=1.0 -Dpackaging=jar | |
# Include the package in pom.xml | |
<dependency> | |
<groupId>com.ibm.statistics</groupId> | |
<artifactId>spssjavaplugin</artifactId> | |
<version>1.0</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# prepare tomato-backend and geni-lib on CloudLab | |
# activate extra disk space and mount it under /tomato | |
sudo /usr/local/etc/emulab/mkextrafs.pl -r /dev/sda /tomato | |
sudo mkdir /tomato/{files,templates} | |
sudo chown tomato:tomato /tomato/{files,templates} | |
sudo service tomato-backend stop | |
cd /var/lib/tomato |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import gdata.photos.service | |
import argparse | |
""" | |
For those who are lazy enough to create a wordpress content and just want to dump everything from their Picasaweb album. | |
Usage: ./pwphotos.py -u PICASAWEB_USER -a PICASAWEB_ALBUM | |
Output will be printed to stdout, you can simply redirect it to a file > out.txt or just copy paste to WordPress (Text mode) | |
""" | |
gd_client = gdata.photos.service.PhotosService() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Node JS app backend | |
upstream node_server { | |
server 127.0.0.1:3003; | |
} | |
server { | |
server_name app.example.com; | |
#forward to NodeJS app | |
location / { | |
proxy_pass http://node_server; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CloudFlare IP Ranges | |
# Generated at Sat Oct 5 13:51:31 UTC 2013 by ./cloudflare_ips.sh | |
set_real_ip_from 204.93.240.0/24; | |
set_real_ip_from 204.93.177.0/24; | |
set_real_ip_from 199.27.128.0/21; | |
set_real_ip_from 173.245.48.0/20; | |
set_real_ip_from 103.21.244.0/22; | |
set_real_ip_from 103.22.200.0/22; | |
set_real_ip_from 103.31.4.0/22; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Google IPs IPv4 | |
set_real_ip_from 216.239.32.0/19; | |
set_real_ip_from 64.233.160.0/19; | |
set_real_ip_from 66.249.80.0/20; | |
set_real_ip_from 72.14.192.0/18; | |
set_real_ip_from 209.85.128.0/17; | |
set_real_ip_from 66.102.0.0/20; | |
set_real_ip_from 74.125.0.0/16; | |
set_real_ip_from 64.18.0.0/20; | |
set_real_ip_from 207.126.144.0/20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib2 | |
import re | |
import json | |
""" | |
Scrape member profile details from jkt48.com website and store it into json format. | |
Author: anmsid[at]gmail.com | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
A simple script to convert feedly.cache (json) file to opml. | |
Usage: python feedly2opml.py feedly.cache | |
It will print the opml to stdout. Use redirection to save into file: | |
python feedly2opml.py feedly.cache > feedly.opml | |
Author: anmsid[at]gmail.com | |
""" |