-
get updates from branch (-r puts your commits on top of the pull, don't do this if you're not the only one working on the branch)
git pull -r
-
push local commit
git push origin <branch>
-
create new branch (and switch to it)
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" | |
"time" | |
) | |
const ( | |
loops = int(1000) | |
) |
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" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
) |
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 | |
GOVersion="1.14.3" | |
echo "Removing go if already present" | |
rm -dr /usr/local/go | |
echo "Downloading Go" | |
wget -O go.tar.gz https://storage.googleapis.com/golang/go$GOVersion.linux-armv6l.tar.gz | |
echo "Extracting Go" | |
sudo tar -C /usr/local -xzf go.tar.gz |
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 testcockroach | |
import ( | |
"fmt" | |
"log" | |
"testing" | |
// Import GORM-related packages. | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/postgres" |
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
// https://play.golang.org/p/PWQlSox72E | |
package main | |
import ( | |
"context" | |
"fmt" | |
"strconv" | |
"time" | |
) |
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 ( | |
"context" | |
"crypto/tls" | |
"fmt" | |
"log" | |
"net/http" | |
"golang.org/x/oauth2" |
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
pactl load-module module-remap-sink \ | |
sink_name=reverse-stereo \ | |
master=0 \ | |
channels=2 \ | |
master_channel_map=front-right,front-left \ | |
channel_map=front-left,front-right |
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" | |
) | |
type My struct{} | |
func (m My) MyFunc(name string) { |
OlderNewer