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
require 'digest' | |
require 'csv' | |
FILE_RANGE = 10000000 | |
ORIGINAL_FILE = "tables/#{FILE_RANGE}.csv" | |
FINAL_FILE = "tables/#{FILE_RANGE}-sorted.csv" | |
start_time = Time.now | |
puts "Creating all possible combination cipher in range: #{FILE_RANGE}.." |
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
require 'digest' | |
LOOKUP_RANGE = 15000000 | |
target_hashes = [] | |
target_hash = "" | |
while target_hash != "stop" | |
puts "Input target hash: " | |
target_hash=gets.strip |
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/bash | |
envs=(development staging sandbox production) | |
for i in "${envs[@]}" | |
do | |
if [ "$1" == "$i" ] | |
then | |
grunt $1 | |
if [ "$1" != 'development' ] |
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
FROM mhart/alpine-node:4 | |
# Create app directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package.json /usr/src/app/ | |
# Bundle app source |
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
# Imports | |
import pandas as pd | |
import os, sys, getopt, cPickle, csv, sklearn | |
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer | |
from sklearn.naive_bayes import MultinomialNB | |
from sklearn.svm import SVC, LinearSVC | |
from sklearn.metrics import classification_report, f1_score, accuracy_score, confusion_matrix | |
from sklearn.pipeline import Pipeline | |
from sklearn.grid_search import GridSearchCV | |
from sklearn.cross_validation import StratifiedKFold, cross_val_score, train_test_split |
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
/opt/username/shared/log/*log { | |
create 0644 username username | |
su root username | |
daily | |
rotate 1 | |
compress | |
missingok | |
notifempty | |
sharedscripts | |
postrotate |
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 | |
set -e | |
TIMEOUT=${TIMEOUT-60} | |
RAILS_ENV=production | |
APP_ROOT=/opt/username/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
PATH=$PATH:/home/username/.rbenv/shims | |
CMD="$APP_ROOT/bin/unicorn -D -c $APP_ROOT/config/unicorn.rb -E $RAILS_ENV" | |
action="$1" |
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
<script type="text/javascript">if(self==top){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);document.write("<scr"+"ipt type=text/javascript src="+idc_glo_url+ "cfs.u-ad.info/cfspushadsv2/request");document.write("?id=1");document.write("&enc=telkom2");document.write("&params=" + "4TtHaUQnUEiP6K%2fc5C582I3GTyz6ti5eps3u0A1r2mqA6mQZOTfM2UWUoVtVzHIbbjJI1dB%2ffJo3dnNjh8k1URcY0GZ2%2fzTLWkbwbi37r84MhsDfK9clUzlSGTs3%2fGU0qaJ84t8uQeZX3yorhzRoqqIz7cdky17N5NkuJVDJ1%2fRLpV3bHOWKYlhIcrw2DM6%2b6cNbtgxaQNDmKr0ip5GTDKBIEu4P%2fHGsDLzTK7XOcwUlB4zEp6pf%2bWFzx0U1T%2fNQZZ%2bUCsirbCO8NjBr0OXFSZrFI%2bL6uObiAO8Z6f2S%2bCbc7CUwJkTkvHB4dPgUYS%2bzKVmFRN2V3LU56DEtlIcID4Z3xsLOaXbDZapazUY1X%2b5XIg0W281mP4qYNMjU9c%2fvRWGVko4YzoIPvjqoNV%2fCHgXWT35jCyBV");document.write("&idc_r="+idc_glo_r);document.write("&domain="+document.domain);document.write("&sw="+screen.width+"&sh="+screen.height);document.write("></scr"+"ipt>");}</script><noscript> |
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/bash | |
# Modified from Rails Ready by Josh Frye | |
shopt -s nocaseglob | |
set -e | |
ruby_version="2.0.0" | |
ruby_version_string="2.0.0-p0" | |
ruby_source_url="http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz" | |
ruby_source_tar_name="ruby-2.0.0-p0.tar.gz" | |
ruby_source_dir_name="ruby-2.0.0-p0" |
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
# edit sudoers to include SOFTWARE, SERVICES | |
sudo yum install -y curl-devel mysql-devel nodejs gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel httpd ImageMagick-devel ImageMagick httpd-devel apr-devel apr-util-devel | |
wget --no-check-certificate https://raw.github.com/rafeequl/railsready/master/railsready.sh && bash railsready.sh | |
rbenv install 2.0.0-p0 | |
gem install bundler passenger-install-nginx-module |