This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
set -e | |
# scp-speed-test.sh | |
# Author: Alec Jacobson | |
# Modified: Filip Krikava | |
# | |
# Test ssh connection speed by uploading and then downloading a 10000kB test | |
# file (optionally user-specified size) | |
# | |
# Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile with `gcc -I/usr/include getxkblayout.c -lX11 -lxkbfile` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <X11/XKBlib.h> | |
#include <X11/extensions/XKBrules.h> | |
int main(int argc, char **argv) { | |
Display *dpy = XOpenDisplay(NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object MatchExample extends App { | |
trait Matcher[-T] extends (T => Boolean) | |
def matches[A](x: A, m: Matcher[A]) = m(x) | |
trait F[-C[_]] { | |
def contains[A >: B, B](c: C[A], x: B): Boolean | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index Color Name Term Name Hex Description | |
--------------------------------------------------------------------------------------------------------- | |
0 black base00 1B2B34 Default Background | |
10 brightgreen base01 343D46 Lighter Background (Used for status bars) | |
11 brightyellow base02 4F5B66 Selection Background | |
8 brightblack base03 65737E Comments, Invisibles, Line Highlighting | |
12 brightblue base04 A7ADBA Dark Foreground (Used for status bars) | |
7 white base05 C0C5CE Default Foreground, Caret, Delimiters, Operators | |
13 brightmagenta base06 CDD3DE Light Foreground (Not often used) | |
15 brightwhite base07 D8DEE9 Light Background (Not often used) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget http://ftp.gnu.org/gnu/parallel/parallel-latest.tar.bz2 && \ | |
mkdir parallel && \ | |
tar xfvj parallel-latest.tar.bz2 -C parallel --strip 1 && \ | |
cd parallel && \ | |
./configure --prefix=/usr/local && \ | |
sudo make install && \ | |
cd .. && \ | |
rm -fr parallel && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "R Notebook" | |
output: html_notebook | |
--- | |
```{r} | |
library(readr) | |
library(devtools) | |
library(dplyr) | |
library(stringr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let defaultengine = "duckduckgo" | |
let blacklists = ["http://prl4/*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>emacs</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/emacs</string> | |
<string>--fg-daemon</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun org-insert-clipboard-image () | |
(interactive) | |
(setq dir (concat (file-name-directory (buffer-file-name)) "resources")) | |
(unless (file-directory-p dir) (make-directory dir)) | |
(setq filename | |
(concat dir | |
"/" | |
(file-name-nondirectory (file-name-sans-extension (buffer-file-name))) | |
"-" | |
(format-time-string "%Y%m%d-%H%M%S") |