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
--- | |
kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
labels: | |
test-iperf3: server | |
name: iperf3-server | |
spec: | |
replicas: 1 | |
revisionHistoryLimit: 10 |
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
[ | |
// Cursor right / left | |
{ | |
"key": "right", | |
"command": "cursorRight", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+f", | |
"command": "cursorRight", |
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
#!/bin/bash -eu | |
usage_exit() { | |
echo "Usage: $0 [-d user] [-u user]" 1>&2 | |
echo " -d: disable deny access from user" 1>&2 | |
echo " -u: kick $1 and deny access from user" 1>&2 | |
exit 1 | |
} | |
kick_user(){ |
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
[Unit] | |
Description=Keep reverse portforward tunnel | |
After=network.target | |
[Service] | |
User=root | |
Restart=always | |
RestartSec=5 | |
Type=simple | |
ExecStart=/usr/bin/ssh -NTv \ |
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
#include <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <random> | |
#include <stdio.h> | |
#define N 100 | |
template <typename RandomAccessIterator, typename Predicate> | |
int bogo_sort(RandomAccessIterator begin, RandomAccessIterator end, Predicate p) { |
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
#include <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <random> | |
#define N 100 | |
template <typename RandomAccessIterator, typename Predicate> | |
int bogo_sort(RandomAccessIterator begin, RandomAccessIterator end, Predicate p) { | |
std::random_device rd; |
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
-- Standard awesome library | |
local gears = require("gears") | |
local awful = require("awful") | |
awful.rules = require("awful.rules") | |
require("awful.autofocus") | |
-- Widget and layout library | |
local wibox = require("wibox") | |
-- Theme handling library | |
local beautiful = require("beautiful") | |
-- Notification library |
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
export GOPATH="$HOME/.go" | |
export PATH=$PATH:$HOME/.go/bin |
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
# Set up the prompt | |
autoload -Uz promptinit | |
promptinit | |
PROMPT=' | |
%K{blue}%n@%m%k %B%F{cyan}%~%f%b | |
%# ' | |
#RPROMPT='[%(?.%?.%B%F{red}%?%f%b), %D %*] # process result | |
setopt histignorealldups sharehistory |
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
# -- default shell -- | |
set-option -g default-shell /bin/zsh | |
set-option -g default-command /bin/zsh | |
# -- prefix -- | |
set -g prefix C-s | |
unbind C-b | |
# -- line max -- | |
set -g history-limit 50000 |
NewerOlder