Skip to content

Instantly share code, notes, and snippets.

View w33tmaricich's full-sized avatar

Alexander Maricich w33tmaricich

  • LightFeather.io
  • Bowie, MD
View GitHub Profile
# simple-cdd.conf detailed configuration file
# Note: this is an example list of configuration options: it is *strongly*
# advised to merely create a new file using only the options you actually need.
# Note: Variables in lowercase are only used by simple-cdd.
# Profile Selection
#
# The following four files get included on the CD if present:
@w33tmaricich
w33tmaricich / code.css
Created May 23, 2018 22:23
css: code block
code {
white-space: pre-wrap;
background-color: #dddddd;
border-radius: .4em;
}
.block {
display: block;
}
@w33tmaricich
w33tmaricich / README.md
Last active January 4, 2019 15:16
md: readme template
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
@w33tmaricich
w33tmaricich / build-colors.css
Created May 23, 2018 19:39
css: build colors
.passing {
background-color: #6EFF75;
}
.warning {
background-color: #E8C359;
}
.failed {
background-color: #FF4D4D;
}
@w33tmaricich
w33tmaricich / footer.css
Last active May 23, 2018 19:25
css: footer
@w33tmaricich
w33tmaricich / md5.clj
Last active March 21, 2016 14:00
clj: calculate md5 hash of a given string
(import 'java.security.MessageDigest
'java.math.BigInteger)
(defn md5 [s]
(let [algorithm (MessageDigest/getInstance "MD5")
size (* 2 (.getDigestLength algorithm))
raw (.digest algorithm (.getBytes s))
sig (.toString (BigInteger. 1 raw) 16)
padding (apply str (repeat (- size (count sig)) "0"))]
(str padding sig)))
@w33tmaricich
w33tmaricich / Vim Shortcuts.md
Last active March 21, 2016 14:06
ref: vim shortcuts

#VIM Shortcuts

##How to Exit

Command Description
:q[uit] Quit Vim. This fails when changes have been made.
:q[uit]! Quit without writing.
:cq[uit] Quit always, without writing.
:wq Write the current file and exit.
@w33tmaricich
w33tmaricich / gist:4894e786a721765ab2eb
Last active March 21, 2016 14:06 — forked from pitch-gist/gist:2999707
html: simple maintenance page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@w33tmaricich
w33tmaricich / stringmap-keymap.clj
Last active March 21, 2016 14:08
clj: converts a map with strings as keys into a map with keywords
(defn stringmap->keymap
"Converts a map with strings as keys into a map with keywords"
[m]
(into {}
(for [[k v] m]
[(keyword k) v])))