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 | |
xrandr --output HDMI3 --auto; | |
sleep 5; | |
xrandr --output LVDS1 --off; | |
sleep 5; | |
xrandr --output VGA1 --right-of HDMI3 --auto --primary; |
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
package com.jthompson; | |
import java.io.File; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import lombok.extern.java.Log; | |
import org.jooq.tools.jdbc.MockConnection; | |
import org.jooq.tools.jdbc.MockDataProvider; |
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
import Data.List | |
import Network | |
import System.IO | |
import System.Exit | |
import System.Random | |
import Control.Arrow | |
import Control.Monad.Reader | |
import Control.Exception | |
import Text.Printf | |
import Prelude hiding (catch) |
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
import Text.Printf(printf) | |
data Message = | |
Message {msgType :: String, | |
msgTo :: String, | |
msgValue :: String} | |
deriving (Eq, Read) | |
data FooMessage = | |
FooMessage {msg :: Message, |
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 | |
JPID=`pgrep -f journal.wiki` | |
#Send an alert | |
kdialog --title "JOURNAL" --passivepopup "Write in your journal!" | |
if [ -z $JPID ] | |
then | |
/usr/bin/gvim ~/Dropbox/vimwiki/journal.wiki & |
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
(ns oscplay.core) | |
(use 'overtone.osc) | |
(def PORT 8000) | |
(def mappings [{:from "/1/toggle1" | |
:to "/ardour/toggle1"} | |
{:from "/1/toggle2" | |
:to "/ardour/toggle2"}]) |
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 | |
################# | |
# set 'merge-tool-cmd = kdiff3svn' in ~/.subversion/config | |
# ############### | |
kdiff3 $1 $2 $3 -o $4 | |
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
(q '[:find ?food | |
:where [?person :person/name "John"] | |
[?person :favorite/food ?food]] | |
(d/since database #inst "2012-01-01T00:00:00.000-00:00") | |
) |
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
########################## | |
# /etc/systemd/logind.conf was recently changed to intercept and | |
# eat power events (like laptop lid closing) BEFORE kde has a | |
# chance to act on them. Rendering System_Settings->Power_Management->Energy_Savings | |
# settings useless. The following settings should fix it. | |
########################## | |
# | |
# | |
# This file is part of systemd. | |
# |
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
#lang racket/base | |
;; In .vimrc, add the following config or equivalent: | |
;; "au FileType scheme setlocal dict+=~/.racket-dict.vim" | |
;; | |
;; Any (require ..) forms in this source file will impact symbols generated | |
(require racket/gui/base) | |
(require racket/gui) | |
(require racket/draw) |
OlderNewer