I hereby claim:
- I am japaz on github.
- I am japaz (https://keybase.io/japaz) on keybase.
- I have a public key whose fingerprint is D2EA 09A8 4001 DE12 31EE 7EE2 4D4C F3D6 8509 FAA0
To claim this, I am signing this object:
#!/bin/bash | |
# Loop through each subdirectory in the current directory | |
for dir in */; do | |
if [ -d "${dir}/.git" ]; then | |
echo "Processing repository: $dir" | |
( | |
# Enter the subdirectory | |
cd "$dir" || exit 1 | |
#!/bin/bash | |
# Description: Syncs target branch with latest master, trying multiple clone paths if needed | |
# Usage: ./sync-branches.sh <target-branch> <repo1> <repo2> ... | |
set -eo pipefail | |
# Formatting | |
BOLD="\033[1m" | |
CYAN="\033[0;36m" | |
RED="\033[0;31m" |
I hereby claim:
To claim this, I am signing this object:
-- 1. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
-- 2. Enable Applescript Editor | |
-- Usage: <script> gatewayHostName password | |
-- based on https://gist.github.com/andrewh/7135352 and https://github.com/seanfisk/juniper-network-connect-vpn-applescript/blob/master/juniper.applescript | |
on run argv | |
if (count of argv) is not equal to 2 then | |
return "Usage: <script> gatewayHostName password" | |
else |
#compdef rscreen | |
# rscreen autocompletion for oh-my-zsh | |
# Requires: rscreen installed | |
_ssh | |
_arguments \ | |
':hosts:_ssh_hosts' \ | |
&& return 0 |
#!/bin/sh | |
# | |
# sample script to use autossh to open up a remote screen | |
# session, or reconnect to an existing one. | |
# | |
# $Id: rscreen,v 1.4 2002/05/07 17:54:13 harding Exp $ | |
# | |
if [ "X$1" = "X" ]; then | |
echo "usage: `basename $0` <host>" | |
exit 1 |
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); |
package week7 | |
class Pouring(capacity: Vector[Int]) { | |
// States | |
type State = Vector[Int] | |
val initialState = capacity map (x => 0) | |
// Moves |
%{url_effective},%{http_code},%{content_type},%{time_total},%{time_connect},%{time_starttransfer},%{size_download}\n |
defscrollback 5000 | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]' |