Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<head>
<meta charset="utf-8">
</head>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 Create partition(s) and file system</a>
<ul>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 Create partition(s) and file system</a>
<ul>
<li><a href="#sec-1-1">1.1 Get USB drive's location</a></li>
<li><a href="#sec-1-2">1.2 Create partitions using GPT (ArchWiki)</a></li>
<li><a href="#sec-1-3">1.3 Format partition with a file system (ArchWiki)</a></li>
</ul>
@pandeiro
pandeiro / index.html
Last active December 21, 2015 19:39 — forked from tilomitra/index.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/pure/0.2.1/pure-min.css">
<style>
.pure-g,
.pure-g-r {
/* font-family: "Bitstream Charter", Tinos, "Droid Sans", "Dejavu Sans", Helvetica, Arial, sans-serif; */
}
.pure-g [class *= "pure-u"],
@pandeiro
pandeiro / clojurescript.plus.js
Last active May 2, 2020 02:28
A pre-compiled, batteries-included ClojureScript runtime file in vanilla JavaScript for development purposes.
This file has been truncated, but you can view the full file.
/**
* clojurescript.plus.js: pre-compiled ClojureScript runtime + some libs
*
* ClojureScript version: 0.0-1889
*
* Includes the following namespaces:
* - clojure.string, clojure.set, clojure.walk, clojure.zip, clojure.browser.repl
* - cljs.core.async, cljs.core.async.macros
* - jayq.core
* - crate.core
@pandeiro
pandeiro / minification.clj
Created December 22, 2014 00:45
HTML minification with htmlcompressor
(import '[com.googlecode.htmlcompressor.compressor HtmlCompressor])
(def compressor
(doto (HtmlCompressor.)
(.setRemoveIntertagSpaces true))
(defn compress-html [html]
(.compress compressor html))
@pandeiro
pandeiro / gist:29943e795c7a54384d3a
Created December 22, 2014 11:56
Cider `make test` output
```
cask build
Compiling /home/mu/repos/com/github/clojure-emacs/cider/nrepl-client.el...
In nrepl-make-buffer-name:
nrepl-client.el:164:61:Warning: reference to free variable `nrepl-project-dir'
nrepl-client.el:165:42:Warning: reference to free variable `nrepl-endpoint'
In end of data:
nrepl-client.el:1339:1:Warning: the following functions are not known to be
@pandeiro
pandeiro / gist:ed171ec92d23a9b5a59c
Last active August 29, 2015 14:11
Cider `make test` fail inside shell buffer in emacs
cask build
Compiling /home/mu/repos/com/github/clojure-emacs/cider/nrepl-client.el...
In nrepl-make-buffer-name:
nrepl-client.el:164:61:Warning: reference to free variable `nrepl-project-dir'
nrepl-client.el:165:42:Warning: reference to free variable `nrepl-endpoint'
In end of data:
nrepl-client.el:1339:1:Warning: the following functions are not known to be
defined: cider-repl-create, cider--check-required-nrepl-ops,
(defn define-node-repl-launcher []
(fn [handler]
(fn [fileset]
(defn node-repl []
(require 'cemerick.piggieback 'cljs.repl.node)
((resolve 'cemerick.piggieback/cljs-repl)
:repl-env ((resolve 'cljs.repl.node/repl-env))
:output-dir ".noderepl"
:optimizations :none
:cache-analysis true
@pandeiro
pandeiro / README.md
Last active June 2, 2020 08:02
Example of a simple webapp written as a single file

Instructions

  1. Get Boot
  2. Copy the above file to $HOME/app.boot
  3. $ chmod a+x $HOME/app.boot
  4. $ cd &amp;&amp; ./app.boot
(source gnu)
(source melpa)
(package-file "~/.cask/cask.el")
;; (files "*.el" "bin" "templates")
(development
(depends-on "f")
(depends-on "s")