I hereby claim:
- I am crudh on github.
- I am crudh (https://keybase.io/crudh) on keybase.
- I have a public key whose fingerprint is 0D56 584D FE63 CAC7 FDCC 054F 2E1B 5E5D 4404 227C
To claim this, I am signing this object:
#!/bin/sh | |
# CONFIGURE THIS | |
inputDir=/var/system | |
outputDir=/tmp | |
resultPrefix=system | |
mailSubject="Backup - system" | |
mailBody="Backup - system" | |
mailRecipient=christian@primian.se |
#!/bin/sh | |
# CONFIGURE THIS | |
outputBase=/Users/crudh/Code/shell-scripts/mongo-backup/test | |
resultPrefix=system-name | |
mailSubject="Backup - mongodb" | |
mailBody="Backup - mongodb" | |
mailRecipient=christian@primian.se | |
# DO NOT CHANGE BELOW HERE-------------------------- |
[core] | |
pager = less -+S | |
[push] | |
default = current | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
grep -IUrl $'\r' . |
import java.util.Enumeration; | |
import java.util.List; | |
import com.tangosol.coherence.component.net.Member; | |
import com.tangosol.net.CacheFactory; | |
import com.tangosol.net.CacheService; | |
import com.tangosol.net.Cluster; | |
import com.tangosol.net.NamedCache; | |
import com.tangosol.net.Service; |
def rss = Action { implicit request => | |
Ok( | |
<rss version="2.0"> | |
<channel> | |
<title>News Application</title> | |
<link>{ routes.Application.index.absoluteURL(false) }</link> | |
<description>News Application</description> | |
{ NewsArticle.all.map { newsArticle => | |
<item> | |
<title>{ newsArticle.title }</title> |
public class MyPayloadEventDispatcher implements IEventDispatcher { | |
@Override | |
public void dispatchEvent(Object sink, IEvent event, Component component) { | |
// Check that the payload isn't null and that the sink, the receiver, has the annotation | |
if (event.getPayload() != null && sink.getClass().isAnnotationPresent(EventPayloadReceiver.class)) { | |
EventPayloadReceiver eventReceiver = sink.getClass().getAnnotation(EventPayloadReceiver.class); | |
// Check that the annotation is configured with the current event | |
if (Arrays.asList(eventReceiver.value()).contains(event.getPayload().getClass())) { |
I hereby claim:
To claim this, I am signing this object:
PS1='\[\e[0;33m\]\h:\W \u\$\[\e[m\] ' | |
export CLICOLOR=1 | |
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
export LC_MESSAGES="en_US.UTF-8" | |
alias mv='mv -i' | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias ls='ls -GF' |
#Use at your own risk. No warranties expressed or implied. YMMV. Drive responsibly. Eat healthy. | |
#for ZSH, I typically put these in my .zshrc | |
function restart_audio() { | |
command sudo killall coreaudiod && | |
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist && | |
sudo launchctl load /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist && | |
echo 'Audio daemon restarted' | |
} |