- 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 *
# 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 |
#!/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 |
#!/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') |
# Thomas Daley | |
# September 13, 2021 | |
# A generic build template for C/C++ programs | |
# executable name | |
EXE = app | |
# C compiler | |
CC = gcc |
#!/usr/bin/env python3 | |
''' | |
Abstract Syntax Trees | |
01/04/2018 | |
You may override the constants OPERATORS and PRECEDENCE | |
to define your own grammar. The is_operand() function is | |
intended to be redefined as well and is used to determine | |
if a given token within an expression string is a valid |
# 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 |
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 *
#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 */ |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/tom/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |