- install asuswrt-merlin firmware
- enable ssh by visiting Administration > System and setting Enable SSH to 'Yes'
- install optware, following these instructions
- ssh into your router and run
ipkg install rsync
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 | |
# pull fresh docker images | |
# docker images with registry.namely.land and production|master|latest | |
images=$(docker images | grep 'registry.namely.land' | grep 'production\|master\|latest' | awk '{print $1":"$2}') | |
# loop through images and pull each one | |
for image in $images | |
do |
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 | |
# Reads EXIF creation date from all .JPG files in the | |
# current directory and moves them carefully under | |
# | |
# $BASEDIR/YYYY/YYYY-MM/YYYY-MM-DD/ | |
# | |
# ...where 'carefully' means that it does not overwrite | |
# differing files if they already exist and will not delete | |
# the original file if copying fails for some reason. |
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
version: '2' | |
services: | |
db: | |
image: postgres:latest | |
cache: | |
image: memcached:latest | |
elasticsearch: | |
image: elasticsearch:latest |
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 ruby:2.2 | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
nodejs \ | |
libpq-dev \ | |
libxml2-dev \ | |
libxslt1-dev \ | |
libqt4-webkit \ | |
libqt4-dev \ |
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
class BaseUploader < CarrierWave::Uploader::Base | |
include ::CarrierWave::MimeTypes | |
storage Rails.env.development? ? :file : :fog | |
process :set_content_type | |
# append digests to the original filename so we can validate file uniqueness | |
def md5 | |
@md5 ||= Digest::MD5.hexdigest(model.send(mounted_as).read.to_s) |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": ["s3:ListAllMyBuckets"], | |
"Resource": "arn:aws:s3:::*" | |
}, | |
{ | |
"Effect": "Allow", |
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
// | |
// API.swift | |
// | |
// Created by Taro Minowa on 6/10/14. | |
// Copyright (c) 2014 Higepon Taro Minowa. All rights reserved. | |
// | |
import Foundation | |
typealias JSONDictionary = Dictionary<String, AnyObject> |
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 ruby | |
require 'fileutils' | |
# setup | |
root_dir = ARGV[0] || "#{ENV['HOME']}/Desktop/coffee-to-browserify" | |
src_dir = ARGV[1] || "src" | |
dst_dir = ARGV[2] || "dst" | |
src = "#{root_dir}/#{src_dir}" | |
dst = "#{root_dir}/#{dst_dir}" |
NewerOlder