Skip to content

Instantly share code, notes, and snippets.

Avatar

Denis Isidoro denisidoro

View GitHub Profile
View dark-splunk.css
/* Based on https://gist.github.com/hobbes3/fbc0c591d49178a7995a */
/* BACKGROUND */
body,
.dashboard-body,
.footer,
.dashboard-panel,
.dashboard-cell {
background: #333333 !important;
}
View dark-riemann.css
/* Background */
body, #event-pane {
background: #333333;
color: white;
}
li.button, input.server, div.add.button {
background-color: #8BC34A !important;
border: 0px solid green !important;
@denisidoro
denisidoro / inline-spec-macro.clj
Created Sep 16, 2017
Inline, schema-like macro for clojure.spec
View inline-spec-macro.clj
(ns inline-spec-macro.clj
(:require [clojure.spec.alpha :as s]
[orchestra.spec.test :as st]))
(clojure.core/defn ^:private in?
[coll elm]
(some #(= elm %) coll))
(clojure.core/defn ^:private indices
[pred coll]
@denisidoro
denisidoro / setup.sh
Last active Jan 30, 2017
Codeanywhere CentOS setup
View setup.sh
#!/bin/sh
# Update and install some binaries
sudo yum -y update
sudo yum -y install zsh curl wget git nano unzip
# Use temporary directory
mkdir ~/tmp
cd ~/tmp
@denisidoro
denisidoro / gbdp.sh
Created Nov 29, 2016
Prompt to delete each branch
View gbdp.sh
#!/bin/sh
function prompt {
printf "Do you want to delete $1? (y/N)? "
read -r answer
if echo "$answer" | grep -iq "^y" ;then
git branch -D $1
fi
}
You can’t perform that action at this time.