Just a collection of git + magit things that I need to start remembering.
git switch -c my-branch
# ... do work
I've been switching back and forth between English and Swedish for programming / chatting since.. forever.
Having bought the ZSA Moonlander, one of the goals was to eliminate switching.
There are two possible routes:
https://github.com/doomemacs/doomemacs/blob/master/docs/getting_started.org#with-homebrew
I use emacs-plus because of the emacs-mac issues with emacsclient. See this issue: railwaycat/homebrew-emacsmacport#52
package main_test | |
import ( | |
"testing" | |
) | |
var res int | |
func a(x int) int { | |
return x |
package main | |
import ( | |
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2" | |
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" | |
) | |
type VpcArgs struct { | |
Name string | |
CidrBlock string |
I hereby claim:
To claim this, I am signing this object:
package a | |
import ( | |
"math/rand" | |
"sort" | |
"testing" | |
) | |
var res []int | |
var res2 map[int]struct{} |
{ | |
"TestCases": { | |
"prefix": "tcs", | |
"body": [ | |
"func Test_$1(t *testing.T) {", | |
"\tfor _, tc := range []struct{", | |
"\t\t$2 $3", | |
"\t\twant $4", | |
"\t}{", | |
"\t\t{$0},", |
The purpose of this document is to summarize some of the things I had to figure out to successfully install Ubuntu on my iMac '19 27" 5K, a.k.a. iMac 19,1.
From what I could find, iMac's do not have the t2 security chip. However, it does share hardware (and firmware) with contemporary Macbook Pros. For this reason, the t2linux.org website contains lots of helpful information about how to install Ubuntu on an iMac.
However, the guides on the t2linux website did not work for me when I ran it, so I had to mix and match some old pages from the wiki to make things work. Also, most issues are focused on Macbooks, not iMacs.
#!/usr/bin/env bash | |
# | |
# Archive a folder by uploading it to S3 and | |
# renive it locally | |
# | |
# Usage: | |
# | |
# ./s3archive.sh $dir $bucket | |
# | |
echo "Uploading to archive bucket..." |