Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
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
echo 'APT::Install-Recommends "false"; | |
APT::Install-Suggests "false";' | sudo tee /etc/apt/apt.conf.d/00install-recommends > /dev/null | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y docker-ce nftables | |
sudo update-alternatives --set iptables $(which iptables-nft) | |
sudo update-alternatives --set ip6tables $(which ip6tables-nft) | |
sudo usermod -aG docker $(whoami) |
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
// ==UserScript== | |
// @name feelcycle-diff-sheet.js | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description FEELCYCLE の予約ページで難易度を表示する userscript | |
// @author owatan | |
// @match https://m.feelcycle.com/reserve | |
// @icon https://m.feelcycle.com/favicon.png | |
// @grant none | |
// ==/UserScript== |
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 | |
# ##Requirements | |
# - twurl | |
# - Ruby | |
# - SQLite 3 | |
set -e | |
# cronとかで使えるようにsqliteとruby、ruby gemsのパスを通す。これはmacOSのHomebrewで入れた場合 |
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
/* ==UserStyle== | |
@name niconico user page dark theme | |
@namespace kpherox.dev | |
@version 1.2.0 | |
@author kPherox <admin@mail.kr-kp.com> | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://www.nicovideo.jp/my"), | |
url-prefix("https://www.nicovideo.jp/user"), | |
url-prefix("https://www.nicovideo.jp/series") { | |
body.BaseLayout { |
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
#!/usr/bin/perl | |
use feature qw(say); | |
use strict; | |
use warnings; | |
use Cwd 'abs_path'; | |
use File::Basename 'dirname'; | |
use File::Spec; | |
use Getopt::Long 'GetOptions'; | |
use JSON::PP; |
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
version: '3.5' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy:alpine | |
restart: always | |
network_mode: host | |
ports: | |
- "443:443" | |
- "80:80" |
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
Creative Commons Legal Code | |
CC0 1.0 Universal | |
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE | |
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN | |
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS | |
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES | |
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS | |
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM |
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 | |
abort () { | |
echo "Aborted." | |
exit 1 | |
} | |
echo "Ctrl-D to continue, Ctrl-C to abort." | |
trap abort 2 |