This file contains hidden or 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
#! /usr/bin/env bash | |
# Provided a list of package and option names (provided by my `writeOpts.sh` and | |
# `writePacks.sh` scripts), fuzzy search package and options information. | |
# The selection's definition will be opened in vim (as readonly) for viewing. | |
# NOTE: This script opens the result in a new URxvt window, you most likely will want | |
# to change that to open in the current window, or your own Terminal Emulator of | |
# choice. The current implementation is intended for use with a temporary XMonad | |
# scratchpad, which dies immediately after exiting (thus a new URxvt window is | |
# required). |
This file contains hidden or 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 hidden or 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
http://darksoft.org/webbzr/docs/MyDocs/annotate/head:/Analysis/list.txt?sort=size | |
Toolset | |
======= | |
Tracers: | |
Function: perf, strace/ltrace | |
I/O: fatrace, lsof | |
Profilers: | |
Function/Tree: perf, valgrind/kcachegrind(slow), google-perftools (low precision) |
This file contains hidden or 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
upstream my-web-app-here { | |
server 127.0.0.1:8080; | |
} | |
server { | |
listen 80; | |
listen 443 ssl http2; | |
listen [::]:80; | |
listen [::]:443 ssl http2; |
This file contains hidden or 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
String.prototype.template = function (object) { | |
// Andrea Giammarchi - WTFPL License | |
var | |
stringify = JSON.stringify, | |
re = /\$\{(.*?)\}/g, | |
evaluate = [], | |
i = 0, | |
m | |
; | |
while (m = re.exec(this)) { |