I hereby claim:
- I am herrphon on github.
- I am herrphon (https://keybase.io/herrphon) on keybase.
- I have a public key whose fingerprint is 5463 5C04 EEB0 EAB5 AE06 48F8 E2D7 327C FFB8 58BE
To claim this, I am signing this object:
This file contains hidden or 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
hardstatus alwayslastline '[%{b}%d.%m.%Y - %c%{-}] [%{r}%n:%t%{-} | %W] [%{g}%l%{-}] [%{b}%h%{-}] ' | |
defutf8 on |
This file contains hidden or 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
WARN: | |
df -h | grep "[7,8][0-9]% /" | |
ERROR: | |
df -h | grep "[9,0][0-9]% /" |
This file contains hidden or 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 'stringio' | |
require 'pp' | |
def capture_all(proc) | |
begin | |
$stdout = StringIO.new | |
$stderr = StringIO.new | |
proc.call |
This file contains hidden or 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 'pp' | |
module Helper | |
def capture(&block) | |
begin | |
$stdout = StringIO.new | |
$stderr = StringIO.new | |
yield | |
result = {} | |
result[:stdout] = $stdout.string |
This file contains hidden or 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
package de.aeffle.for_each_with_counter; | |
import com.google.common.collect.ImmutableList; | |
import org.junit.Test; | |
import java.util.Iterator; | |
import java.util.List; | |
public class ForEachLoopWithIndex { |
This file contains hidden or 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
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem | |
chmod 700 id_rsa.pem |
Install HomeBrew first
brew update
brew tap caskroom/cask
brew install brew-cask
If you get the error "already installed", follow the instructions to unlink it, then install again:
OlderNewer