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
| --- | |
| groups: | |
| - name: datetime | |
| interval: 60s | |
| rules: | |
| - record: daylight_saving_time | |
| expr: | |
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
| # To record both mic and other audio input sources we need to add a named output sink. See: | |
| # http://www.linuxquestions.org/questions/linux-software-2/alsa-and-pulseaudio-recording-multiple-input-devices-877614/ | |
| # http://www.youtube.com/watch?v=oJADNOY615Y&feature=player_embedded | |
| # Add this to your /etc/pulse/default.pa file | |
| load-module module-null-sink sink_name=stream | |
| load-module module-loopback latency_msec=5 sink=stream | |
| load-module module-loopback latency_msec=5 sink=stream |
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
| #!/bin/bash | |
| function usage { cat << EOF | |
| usage: git ignore [--global|--local|--repo] PATTERN | |
| ignores PATTERN in git | |
| PATTERN may include wildcard. you may want to quote it: | |
| # ignores all pdf files that are in the current directory |
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
| #!/bin/bash | |
| input=$1 | |
| while read -r file | |
| do | |
| orig="$file" | |
| neu="${file}.sonich42xxx" | |
| echo "orig: $orig" |
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
| #!/usr/bin/env bash | |
| set -efu -o pipefail | |
| # returns staged files | |
| function staged.files { | |
| if git rev-parse --verify HEAD &> /dev/null | |
| then | |
| against=HEAD | |
| else |
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
| #!/bin/bash | |
| set \ | |
| -o errexit \ | |
| -o pipefail \ | |
| -o noglob \ | |
| -o nounset \ | |
| app=$(basename "$0" .sh) |
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
| [Unit] | |
| Description=battery notification | |
| [Service] | |
| Environment="DISPLAY=:0" | |
| ExecStart=/bin/bash /path/to/battery-notification.sh 20 10 | |
| Type=oneshot | |
| [Install] | |
| WantedBy=default.target |
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
| suppressMessages(library(lintr)) | |
| files <- commandArgs(trailingOnly = T) | |
| messages <- function(file) { | |
| result <- lint(file) | |
| print(result) | |
| return(length(result)) | |
| } |
NewerOlder