;; make sure you've set your default project with: | |
;; gcloud config set project <project-name> | |
(require 'tramp) | |
(add-to-list 'tramp-methods | |
'("gcssh" | |
(tramp-login-program "gcloud compute ssh") | |
(tramp-login-args (("%h"))) | |
(tramp-async-args (("-q"))) | |
(tramp-remote-shell "/bin/sh") |
This guide assumes you're working on a Unix-like environment. I'm using Linux Mint (Ubuntu). It should work on Macs, and might on Windows.
These are the four steps you can use as a checklist, see the headings below for the details on each step.
- Enable forge support
- Create a Gitlab API key
- Add your gitlab credentials to
~/.authinfo.gpg
- Set-up forge in emacs
#include <iostream> | |
#include <ft2build.h> | |
#include FT_FREETYPE_H | |
#include FT_OUTLINE_H | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_main.h> | |
#include <string> |
(provide 'custom-elfeed) | |
(fset 'rand/feed/open-in-background | |
(kmacro-lambda-form [?y ?\C-u ?\C-\[ ?x ?e ?w ?w ?\C-m ?\C-y ?\C-m ?\C-x ?b ?\C-m] 0 "%d")) | |
(define-key elfeed-search-mode-map (kbd "v") 'rand/feed/open-in-background) | |
(run-with-timer 300 300 'elfeed-update) |
keysym F7 = MouseKeys_Enable | |
keysym Caps_Lock = MouseKeys_Enable |
Go generics remain in a galaxy far, far away.
That doesn't mean Go developers have to remain in the dark ages forever, though.
Developer tools like YASnippet allow us to reuse boilerlate code for common, repetitive tasks including priority queues and AVL Trees without the performance hit imposed by .(casting)
interface{}
s specific to our preferred types.
If you need or want an algorithm or a common pattern converted into a Go snippet, create an issue here and I'll get it done. (I'm currently converting some of the algorithms in this repo into snippets.)
git clone https://github.com/golang/go | |
cd go/src | |
wget https://gist.github.com/stephenwithav/a688d06c2d937ff8748d73226848601c/raw/e7d9a16084ccfd4bf10f854c81cf21e51d655d5d/build.sh | |
grep -r 'type [A-Z][[:alnum:]]* interface {' | grep -v _test | grep \.go | grep -v golden | grep -v vendor | cut -d '{' -f 1 | sed 's/[[:alnum:]._]*:/:/' | sort | sed 's/\([^:]*\):\s*type \([[:alnum:]]*\) interface/\1[\2](https:\/\/pkg.go.dev\/\1#\2)\n/' > ~/gointerfaces.md | |
cd ../.. | |
rm -rf go |
# name: Sort interface template | |
# key: tsort | |
# -- | |
type $1 []$2 | |
func ($3 $1) Len() int { return len($3) } | |
func ($3 $1) Less(i, j int) bool { return $3[i] < $3[j] } | |
func ($3 $1) Swap(i, j int) { $3[i], $3[j] = $3[j], $3[i] } |
# Doxyfile 1.8.13 | |
#--------------------------------------------------------------------------- | |
# Project related configuration options | |
#--------------------------------------------------------------------------- | |
DOXYFILE_ENCODING = UTF-8 | |
PROJECT_NAME = "Chromium" | |
PROJECT_NUMBER = | |
PROJECT_BRIEF = | |
PROJECT_LOGO = |