start new:
tmux
start new with session name:
tmux new -s myname
| package main | |
| import ( | |
| "encoding/hex" | |
| "log" | |
| "net" | |
| "time" | |
| ) | |
| const ( |
| #!/bin/bash -e | |
| echo ' | |
| PATH=$HOME/go/bin:$PATH | |
| export GOPATH=$HOME | |
| export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
| export EDITOR=vim | |
| ' >> ~/.profile | |
| sudo apt-get update |
| # Detect operating system in Makefile. | |
| # Author: He Tao | |
| # Date: 2015-05-30 | |
| OSFLAG := | |
| ifeq ($(OS),Windows_NT) | |
| OSFLAG += -D WIN32 | |
| ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | |
| OSFLAG += -D AMD64 | |
| endif |
| // ************** Instructions for connecting to the LiveCoding chatrooms from a 3rd party application. **************** | |
| Step 1a (Ubuntu/ any OS with aptitude (aka apt-get)) : | |
| sudo apt-add-repository ppa:rsrchboy/profanity && sudo apt-get update | |
| apt-get install profanity | |
| -- | |
| Step 1b (OSX w/ homebrew): | |
| $ brew install profanity | |
| -------- |
| on write_to_file(this_data, target_file, append_data) | |
| try | |
| set the target_file to the target_file as string | |
| set the open_target_file to open for access file target_file with write permission | |
| if append_data is false then set eof of the open_target_file to 0 | |
| write this_data to the open_target_file starting at eof | |
| close access the open_target_file | |
| return true | |
| on error | |
| try |
| import * as ng from '@angular/core'; | |
| import {PusherService} from '../../services/pusher.service' | |
| @ng.Component({ | |
| selector: 'home', | |
| template: require('./home.html') | |
| }) | |
| export class Home { | |
| constructor(private pusher: PusherService) { | |
| console.log('Home:constructor'); |
| So you want to set up remix in cloud run huh? It's pretty simple but i'm going to assume you can figure out most of the GCP UI on your own. | |
| Cloud Run: | |
| Step 1: Create a new service and take note of the service ID | |
| Step 2: Allow all traffic in the /triggers tab | |
| Cloud Build: | |
| Step 1: Set up a Cloud Build trigger on your repo | |
| Step 2: Point the configuration to "cloud build configuration file" at the root of your project | |
| Step 3: Add the following to the substitution variables (so you can keep it safe): |