- Main Menu > Edit > Redo : Ctrl+Y
- Main Menu > Window > Editor Tabs > Editor Close Actions > Close Tab : Ctrl+W
- Main Menu > Window > Editor Tabs > Reopen Closed Tab : Ctrl+Shift+T
- Tool Windows > Terminal : Alt+J
- Other > Bookmarks > Select File in Project View : Ctrl+;
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 | |
# echo 'alias ssh=ssh-wrapper' >> ~/.bashrc | |
# echo 'source ~/.bashrc' >> ~/.profile | |
password=$(awk ' | |
BEGIN { | |
# Collect the SSH arguments as keys of a dictionary, so that we can easily | |
# check for inclusion. | |
for (i = 2; i < ARGC; i++) { |
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
export GO=/usr/local/go | |
export PATH=$GO/bin:$PATH | |
export GOROOT=$GO | |
export GOPATH=$HOME/golang | |
export PATH=$PATH:$GOPATH/bin | |
export TERM=xterm-256color | |
alias tmux="tmux -2" |
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
sudo apt update | |
sudo apt upgrade | |
sudo apt-get purge openssh-server | |
sudo apt-get install openssh-server | |
sudo service ssh start |
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
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
func GetExpanded(ptr interface{}) (interface{}, error) { | |
expValue := reflect.ValueOf(ptr).Elem() | |
t := expValue.Type() |
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 off | |
if defined GVM_VERSION ( | |
echo ERROR: Cannot export on gvm terminal | |
exit /b | |
) | |
set GVM_VERSION=%1 | |
set GOROOT=C:\Go%1 | |
set GOPATH=E:\golang%1 | |
set PATH=%PATH%;%GOROOT%\bin;%GOPATH%\bin |
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
package util | |
import ( | |
"reflect" | |
"strings" | |
) | |
var fieldNamesByTag = make(map[reflect.Type]map[string]map[string]string) | |
func BuildFieldsByTagMap(s interface{}, key string) { |
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
import glob | |
import chardet # pip install chardet | |
def decode(d, preferred_encodings): | |
for e in preferred_encodings: | |
try: | |
return d.decode(e) | |
except UnicodeDecodeError: | |
pass |
OlderNewer