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 | |
cd `dirname $0` | |
if [ $# -le 0 ]; then | |
echo "Please set more than 1 arguments" 1>&2 | |
exit 1 | |
fi | |
args=("$@") | |
argn=$# |
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
# Created by https://www.gitignore.io/api/webstorm | |
### WebStorm ### | |
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | |
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
# User-specific stuff: | |
.idea |
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 'nokogiri' | |
require 'open-uri' | |
require 'pp' | |
require 'matrix' | |
unless ARGV.length > 0 | |
puts "Please pass tonton's URL to the argument." | |
exit | |
end |
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
@echo off | |
set BASE=C:%HOMEPATH%\runcommand | |
setx SHORTCUT_HOME %BASE%\shortcuts | |
setx URL_HOME %BASE%\urls | |
setx DIR_HOME %BASE%\dirs | |
mkdir %BASE% | |
mkdir %SHORTCUTS_HOME% | |
mkdir %URL_HOME% |
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 | |
exec ruby -S -x "$0" "$@" | |
#! ruby | |
require 'fileutils' | |
src_path = ARGV[0] | |
unless File.exist?(src_path) | |
puts 'Specified file path does not exist.' | |
exit(0) |
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
/* hex */ | |
$blue_hex: #02a8f4; | |
$red_hex: #ff5152; | |
$purple_hex: #b867c6; | |
$orange_hex: #ff9000; | |
$turquoiz_hex: #01bbd4; | |
$pink_hex: #ff3f80; | |
$green_hex: #33b490; | |
$navy_hex: #464e70; | |
$ivory_hex: #fff5e3; |
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 | |
# Tex files to be committed | |
tex_files_changed = `git diff --cached --name-only HEAD | grep -E '.*\.tex$'` | |
# Replace into commas and periods | |
THE_ENCODING = 'utf-8' | |
tex_files_changed.each_line do |texname| | |
puts "Replace into commas and periods in #{texname}" | |
texname.chomp! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
before, after, switch = ARGV | |
exit 0 unless before == after | |
exit 0 unless switch.to_i == 1 | |
branch = `git rev-parse --abbrev-ref HEAD` | |
msg = "Created new branch #{branch}" | |
system(%(git commit --allow-empty -m "#{msg}")) |
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 | |
IFS_bak=$IFS | |
IFS=$'\n' | |
s3_movies=($(aws s3 ls --profile=s3-admin s3://private.imaizu.me/movies/ | awk '{print $4 " " $5}')) | |
local_movies=($(ls -1 *.mp4)) | |
archive_dir=${HOME}/Desktop/archived_movies/ | |
for s in "${s3_movies[@]}"; do |
OlderNewer