- Install
rmate
on the remote server
sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate && sudo chmod a+rx /usr/local/bin/rsub
- Modify your
~/.ssh/config
file on your local machine
Host *
#!/usr/bin/env python3 | |
''' | |
Thomas Daley | |
October 16, 2017 | |
This code contains the solution for the programming | |
challenge hosted at dev.getethos.com | |
The first step is to find the instructions which can be |
# Check and update all local packages | |
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U | |
# Write the new requirements to a file | |
pip freeze > requirements.txt |
#!/usr/bin/env python | |
import os | |
from sys import argv | |
from subprocess import Popen | |
def create_file(hidden, n): | |
with open(hidden, 'wb') as f: | |
f.seek(n-1) | |
f.write(b'\x00') |
# Author: Thomas Daley | |
# Date: September 16, 2016 | |
# Purpose: Build template for Windows C/C++ Programs. | |
# | |
# Note: Microsoft Visual C/C++ Build Tools are assumed to be installed and | |
# added to PATH. The folders "src" and "bin" are expected. | |
# | |
# 1) vcvarsall | |
# 2) nmake |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/* Declarations of this file */ | |
#ifdef __cplusplus | |
} | |
#endif |
#ifndef FILENAME_H | |
#define FILENAME_H | |
/* Declarations of this file */ | |
#endif /* FILENAME_H */ |
{ | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme", | |
"default_line_ending": "unix", | |
"drag_text": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Consolas", | |
"font_options": | |
[ | |
"subpixel_antialias" |
{ | |
"always_show_command_status": true, | |
"expand_merge_commits_by_default": true, | |
"theme": "Merge Dark.sublime-theme", | |
"translate_tabs_to_spaces": true, | |
"git_binary": "system", | |
"ui_scale": 1.15, | |
"hardware_acceleration": "opengl", | |
"font_size": 10, | |
} |
rmate
on the remote serversudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate && sudo chmod a+rx /usr/local/bin/rsub
~/.ssh/config
file on your local machineHost *
keycode 66 = Mode_switch | |
keysym j = j J Left | |
keysym l = l L Right | |
keysym i = i I Up | |
keysym k = k K Down | |
keysym u = u U Home | |
keysym o = o O End |