df -h| Filesystem | Size | Used | Avail | Use% | Mounted | on |
| /** | |
| * USB HID Keyboard scan codes as per USB spec 1.11 | |
| * plus some additional codes | |
| * | |
| * Created by MightyPork, 2016 | |
| * Public domain | |
| * | |
| * Adapted from: | |
| * https://source.android.com/devices/input/keyboard-devices.html | |
| */ |
| %% graph_fsm.erl | |
| %% | |
| %% Author: Vance Shipley, Motivity Telecom Inc. <vances@motivity.ca> | |
| %% Date: November, 2000 | |
| %% | |
| %% | |
| %% This library is free software; you can redistribute it and/or | |
| %% modify it under the terms of the GNU Lesser General Public | |
| %% License as published by the Free Software Foundation; either | |
| %% version 2 of the License, or (at your option) any later |
| #!/bin/bash | |
| for h in 192.168.100.1 192.168.100.2 192.168.100.3; do | |
| opts[k++]="--tab" | |
| opts[k++]="--title=$h" | |
| opts[k++]="--command=bash -c 'ssh $h 'hostname'; exec bash'" | |
| done | |
| unset "opts[0]" # don't create an empty tab | |
| xfce4-terminal "${opts[@]}" |
| ls(Dir) -> | |
| case file:list_dir(Dir) of | |
| {ok, Entries} -> | |
| ls_print(sort(Entries)); | |
| {error, enotdir} -> | |
| ls_print([Dir]); | |
| {error, Error} -> | |
| format("~ts\n", [file:format_error(Error)]) | |
| end. |
| Erlang Node Memory Statistics | |
| [newrelic:record_metric(list_to_binary(lists:concat(["Erlang/Memory/", K])), V) || {K, V} <- erlang:memory()]. | |
| Erlang Node Process Count | |
| newrelic:record_metric(<<"Erlang/SystemInfo/ProcessCount">>, erlang:system_info(process_count)). |
| #!/bin/bash | |
| # http://eclipsesource.com/blogs/2012/07/30/accessing-multiple-private-github-repositories-without-a-dedicated-build-user/ | |
| set -e | |
| self=${0} | |
| script_name=$(basename ${self}) | |
| script_dir=$(dirname ${self}) | |
| ssh_dir=${script_dir}/../common/ssh |