- Add
pbcopy.plist
to your~/Library/LaunchAgents/
folder. - Launch the listener with
launchctl load ~/Library/LaunchAgents/pbcopy.plist
. - Add
RemoteForward 2224 127.0.0.1:2224
in your~/.ssh/config
file under yourHost *
or specific hosts sections. - Add
[ -n "$SSH_CLIENT" ] && alias pbcopy="nc localhost 2224"
to your remote~/.bash_profile
or other shell profile. - Enjoy
pbcopy
remotely!
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
#! Aaaaaaaaaaa this is JS!!! | |
// https://github.com/tc39/proposal-hashbang | |
// This file is mixing all new syntaxes in the proposal in one file without considering syntax conflict or correct runtime semantics | |
// Enjoy!!! | |
// Created at Nov 23, 2018 | |
for await(const x of (new A // https://github.com/tc39/proposal-pipeline-operator | |
|> do { // https://github.com/tc39/proposal-do-expressions | |
case(?) { // https://github.com/tc39/proposal-pattern-matching | |
when {val}: class { |
This wrapper automatically sets the RUST_SRC_DIRECTORY
environment variable for whatever rust compiler is currently active, automatically creating a new checkout whenever necessary. This should be compatible with all of the multirust-alike tools, but it has only been tested with rustup.rs
Simply place this somewhere on your path before the main racer binary and set the execute bit.
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
HAI | |
BTW This is a BrainFuck interpreter written in LOLCode | |
BTW It accepts as input a BF program, followed by a "!", followed by any input to the BF program. | |
BTW Since BrainFuck is turing-complete, this proves that LOLCode is too | |
I HAS A INSTRUCTIONS BTW Array for BF instructions | |
I HAS A IPTR BTW Pointer to first empty element in INSTRUCTIONS | |
IPTR R 0 | |
I HAS A LOOPZ BTW Array of loop start/end addresses | |
I HAS A LOOPSTACKZ BTW Loop stack for building the above two |
Для воркшопа nodeschool необходимо установить платформу node.js и пакетный менеджер npm.
для Windows, MacOS самый простой способ установки через официальный сайт в автоматическом режиме, нажав на кнопку Install.
для Linux/Unix систем самый надежный способ через командную строку, использую подходы:
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
var domain = require('domain'); | |
var mysql = require('mysql'); | |
var pool = mysql.createPool({ | |
host: '127.0.0.1', | |
port: 3306, | |
database: 'test', | |
user: 'localuser', | |
password: 'localpass', | |
}); |