Skip to content

Instantly share code, notes, and snippets.

View gist:c20d57be953e78cadfc3
<?xml version="1.0" encoding="UTF-8"?>
<!-- This stylesheet will generate a tsv file from an EAD container list. It will catch all c0X elements that have a did/container child -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- We don't want an xml declaration in the output, since this will just be a tab-separated text file-->
<xsl:output omit-xml-declaration="yes"/>
<!-- We don't want extra space floating around -->
View gist:6286073ab5e890886e30
{
"always_show_minimap_viewport": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"copy_with_empty_selection": false,
"default_encoding": "UTF-8",
"detect_indentation": false,
"font_size": 10,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
View boot.ini.erb
ODROIDC-UBOOT-CONFIG
# Possible screen resolutions
# Uncomment only a single Line! The line with setenv written.
# At least one mode must be selected.
# setenv m "vga" # 640x480
# setenv m "480p" # 720x480
# setenv m "576p" # 720x576
# setenv m "800x480p60hz" # 800x480
View sort.rb
# Sort the array from lowest to highest
def sort(arr)
arr.sort
end
# Find the maximum
def maximum(arr)
sort(arr).last
end
@Jamie0
Jamie0 / autoban.rb
Created Aug 25, 2015
autoban:: Simple, efficient Ruby "fail2ban"-like script
View autoban.rb
#!/bin/env/ruby
# A more efficient and documented autoban.rb
# Jamie - index.hm. Released under MIT.
# This won't work with binary journal logs - the 'systemd/journal' gem doesn't work universally
$ssh_port = 1234
$network = ["127.0.0.0/8", "10.0.0.0/8", "192.168.0.0/16"]
require "shellwords"
@jonatasfreitasv
jonatasfreitasv / gource.sh
Last active Aug 25, 2015 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
View gource.sh
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@noobjey
noobjey / gist:12e050da7c9e1b5793dd
Created Aug 25, 2015
Sass - Lighting Talk Module 2
View gist:12e050da7c9e1b5793dd
# Sass, css for Cool People
### What is Sass
* Precompiler for CSS
* Why use it?
### Sass in Rails
* Setup - just a gem
### 2 Different Flava's
View dump.log
This file has been truncated, but you can view the full file.
(00.000274) Added /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd ext mount mapping
(00.000304) Added /sys/fs/cgroup/net_cls,net_prio:/sys/fs/cgroup/net_cls,net_prio ext mount mapping
(00.000309) Added /sys/fs/cgroup/blkio:/sys/fs/cgroup/blkio ext mount mapping
(00.000313) Added /sys/fs/cgroup/freezer:/sys/fs/cgroup/freezer ext mount mapping
(00.000324) Added /sys/fs/cgroup/memory:/sys/fs/cgroup/memory ext mount mapping
(00.000327) Added /sys/fs/cgroup/perf_event:/sys/fs/cgroup/perf_event ext mount mapping
(00.000331) Added /sys/fs/cgroup/cpu,cpuacct:/sys/fs/cgroup/cpu,cpuacct ext mount mapping
(00.000334) Added /sys/fs/cgroup/hugetlb:/sys/fs/cgroup/hugetlb ext mount mapping
(00.000338) Added /sys/fs/cgroup/cpuset:/sys/fs/cgroup/cpuset ext mount mapping
View FAQ.html
<!doctype html>
<html lang="eng">
<head>
<meta charset="utf-8">
<title>FAQ</title>
<!-- JQuery -->
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<!-- Latest compiled and minified Bootstrap CSS -->
@leikahing
leikahing / find_java.fs
Created Aug 25, 2015
Finding Java in the registry using F#
View find_java.fs
let rec findWorkingJava registryKeys =
match registryKeys with
| [] -> ""
| x::xs ->
let value = Registry.GetValue(x, "JavaHome", String.Empty)
match value with
| null -> findWorkingJava xs
| _ -> value.ToString()
let findJavaInRegistry registryPath =
You can’t perform that action at this time.