Skip to content

Instantly share code, notes, and snippets.

{ config, lib, pkgs, ... }:
let
baseconfig = { allowUnfree = true; };
unstable = import <nixos-unstable> { config = baseconfig; };
in {
imports =
{
/*************************
Go
*************************/
"go.useLanguageServer": true,
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
@epk
epk / no-comments.js
Created June 21, 2021 20:56 — forked from Darep/no-comments.js
Remove all comments from GitHub Pull Request
// Sometimes it's necessary to do a bit of clean-up
Array.prototype.forEach.call(document.querySelectorAll('.js-comment-delete button'), function(el, i) {
el.removeAttribute('data-confirm');
el.click();
});
package play
var _ = Buddy(&someBuddy{})
type someBuddy struct{}
func (s *someBuddy) Name() string {
return "somebuddy"
}
@epk
epk / backend-config-schema.yaml
Created January 15, 2021 01:12
backend-config-schema.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: "2021-01-07T15:25:19Z"
generation: 1
name: backendconfigs.cloud.google.com
resourceVersion: "993"
selfLink: /apis/apiextensions.k8s.io/v1/customresourcedefinitions/backendconfigs.cloud.google.com
uid: 04022ede-4398-4ca9-9c23-c5f5e659c819
spec:
@epk
epk / ignition.yaml
Last active January 8, 2021 01:50
ignition.yaml
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSWf+pMgyV7gCuYvYh0ySizmKLhCCZCRw4trVqLeqol
https://gist.github.com/epk/b4dc7793d2a09e0ae8e7533d6f1196d4
curl -v --interface utun2 172.217.1.174
* Trying 172.217.1.174...
* TCP_NODELAY set
* Local Interface utun2 is ip 100.114.40.4 using address family 2
* Local port: 0
^C
✘  ~  ping 100.83.104.46
PING 100.83.104.46 (100.83.104.46): 56 data bytes
64 bytes from 100.83.104.46: icmp_seq=0 ttl=64 time=32.706 ms
64 bytes from 100.83.104.46: icmp_seq=1 ttl=64 time=36.212 ms
curl -v --interface utun2 google.com
* Trying 172.217.164.206...
* TCP_NODELAY set
* Local Interface utun2 is ip 100.114.40.4 using address family 2
* Local port: 0
* Trying 2607:f8b0:400b:800::200e...
* TCP_NODELAY set
* Trying 2607:f8b0:400b:800::200e...
* TCP_NODELAY set
* Trying 2607:f8b0:400b:800::200e...