Skip to content

Instantly share code, notes, and snippets.

(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '("~/.emacs.d/private/")
;; List of configuration layers to load.
dotspacemacs-configuration-layers '(layer)
;; A list of packages and/or extensions that will not be install and loaded.
dotspacemacs-excluded-packages '()
)
@joefromct
joefromct / install-tmux
Created September 14, 2016 22:04 — forked from rothgar/install-tmux
Install tmux 1.9 on rhel/centos 6
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
@joefromct
joefromct / ssh-multi.sh
Created September 14, 2016 22:25 — forked from dmytro/ssh-multi.sh
Start multiple synchronized SSH connections with Tmux
#!/bin/bash
# ssh-multi
# D.Kovalov
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$HOSTS" ]; then
with
t as (select 'Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium'::text as t ),
select
t,
reverse(
regexp_replace((reverse(t::text)), E'(.{0,63} )(.*)' ,' \1 ') )
as test
from t
@joefromct
joefromct / atom_clojure_setup.md
Created December 2, 2016 20:44 — forked from jasongilman/atom_clojure_setup.md
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

# given a list like this:
the_list = [1,2,3,4,5]
# We could call do_something() for each item in the list like this:
for li in the_list:
do_something(li)
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
});
rl.on('line', function (line) {
(ns cljs-utils.core
(:require [clojure.string :as str]
[cljs.nodejs :as nodejs]))
(nodejs/enable-util-print!)
(defn -main [& args]
(let [
readline (nodejs/require "readline")
(ns db-async-test.core-test
(:require [jdbc.core :as j] ;; this is the namespace for funcool/clojure.jdbc
;;[clojure.java.jdbc :as j]
[while-let.core :refer [while-let]]
[clojure.java.io :as io]
[clojure.data.csv :as csv]
[clojure.core.async :as a :refer [>! >!! <! <!! go-loop go chan thread]]
[clojure.string :as str]))
# MY ARCH INSTALL GUIDE
# Change /dev/nvme**** to whatever drive/partitons you want
# This basically gets you to a GUI login
parted
# rm * # dunno if * will work but, delete all partitions
# mkpart ESP fat32 1MiB 513MiB
# set 1 boot on
# mkpart primary ext4 513MiB 50%
# quit
cryptsetup -y -v luksFormat /dev/nvme0n1p2 # setup encrypted container, set container password