This file contains 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
(defun dotspacemacs/user-config () | |
"Configuration for user code: | |
This function is called at the very end of Spacemacs startup, after layer | |
configuration. | |
Put your configuration code here, except for variables that should be set | |
before packages are loaded." | |
;; For dictionaries look here https://wiki.openoffice.org/wiki/Dictionaries | |
(with-eval-after-load "ispell" | |
(setq ispell-program-name "hunspell") | |
;; ispell-set-spellchecker-params has to be called |
This file contains 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 | |
# This has got to be the best dumb hack i've seen. | |
# what does this do? basically just strips *any* formatting you happen to have in your pastebuffer and remove it. | |
# Now i can copy and paste from any program and paste *clean* UTF-8 like ken thompson intended https://www.cl.cam.ac.uk/~mgk25/ucs/utf-8-history.txt | |
pbpaste | pbcopy |
This file contains 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
git checkout "`git rev-list master -n 1 --first-parent --before=2008-03-02`" |
This file contains 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
➜ ~ cd $ANDROID_SDK ➜ r21.1 git:(master) pwd /usr/local/Cellar/android-sdk/r21.1 | |
➜ r21.1 git:(master) cd platform-tools ➜ platform-tools git:(master) strings aapt nonav | |
dpad | |
navexposed | |
nokeys | |
12key | |
keysexposed | |
keyshidden | |
notouch | |
stylus |
This file contains 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/sh | |
# | |
# usage: retrieve-cert.sh remote.host.name [port] | |
# | |
REMHOST=$1 | |
REMPORT=${2:-443} | |
echo |\ | |
openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |\ | |
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' |
This file contains 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
function brris_precmd_hook { | |
local bar="" | |
local separator="✨" | |
for ((i = 0; i < ${COLUMNS}; i++)) ; do | |
bar="${bar}${separator}" | |
done | |
echo $fg_bold[yellow]${bar} | |
} | |
[[ -z $precmd_functions ]] && precmd_functions=() | |
precmd_functions=($precmd_functions brris_precmd_hook) |
This file contains 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 ruby | |
require 'yaml' | |
yaml_file = YAML::load(File.open(ARGV[0])) | |
puts YAML::dump(yaml_file) |
This file contains 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
Hej Jenkins, | |
Vi behöver prata. | |
Vi har varit ihop några år nu men som Oall good things¹ även vi måste ta | |
slut. | |
Du har fått ögonen upp för andra och jag känner att det är dags för mig | |
att släppt dig fri. |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="git" default="is-working-directory-clean"> | |
<target name="-git-status"> | |
<exec executable="git" outputproperty="git.status.message" failifexecutionfails="false" errorproperty=""> | |
<arg value="status"/> | |
<arg value="--short"/> | |
</exec> | |
<condition property="git.clean.wd"> | |
<and> |
This file contains 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
<target name="run-tests" depends="compile"> | |
<junit failureproperty="test.failure" includeantruntime="false"> | |
<classpath refid="run.classpath"/> | |
<formatter type="plain" usefile="no"/> | |
<batchtest todir="${reports.dir}" unless="test"> | |
<fileset dir="${source.dir}" includes="**/*Test.java"/> | |
<formatter type="xml"/> | |
</batchtest> |
NewerOlder