Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am ericr on github.
  • I am ericr (https://keybase.io/ericr) on keybase.
  • I have a public key whose fingerprint is 90C9 B0F8 93A3 B45A FC42 9F8C 9685 66F2 C75E 646A

To claim this, I am signing this object:

View gist:9022b368b814b1374181
Starting 2014_09_27 mysql full backup at hour 04_01
Backup filename 2014_09_27.tar.lzo
Finished with success 2014_09_27 mysql backup at hour 06_29
Mysql backup is written in root@backup.sea.pro:/disk3/mysql-backups/2014_09_27.tar.lzo
Beginning to Test 2014_09_27 full backup 2014_09_27.tar.lzo at 06_29
+ backup_type=full
+ filename=2014_09_27.tar.lzo
+ backup_date=2014_09_27
++ date +%Y_%m_%d
+ today=2014_09_27
@EricR
EricR / fetlife_erlang_engineer.erl
Last active Aug 29, 2015
Silly little job applicant program
View fetlife_erlang_engineer.erl
-module(fetlife_erlang_engineer).
-compile(export_all).
start_interviewer() ->
spawn(?MODULE, interviewer, []).
apply_for_job(Level) ->
Ref = make_ref(),
interview ! {self(), Ref, {skillz, Level}},
receive
View validator_exception.txt
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
View stopwords.txt
a
about
above
after
again
against
all
am
an
and
View downcase.go
package main
import (
"fmt"
"strings"
)
func main() {
fmt.Printf("%s", strings.ToLower("Mixed Case should be down cased")) // => mixed case should be down cased
}
View ssh.plist
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/sshd</string>
<string>-f /etc/sshd_config</string>
</array>
View ssh.plist
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/sshd</string>
<string>-i</string>
</array>
View ngrams.go
package main
import (
"fmt"
"strings"
)
func nGram(text string, n int) (grams []string) {
words := strings.Split(text, " ")
limit := len(words) - (n - 1)