Skip to content

Instantly share code, notes, and snippets.

[caglar@qop:~/go/src/gopkg.in/lxc/go-lxc.v2/examples] ./start
2015/01/24 14:35:15 Starting the container...
2015/01/24 14:35:16 Waiting container to startup networking...
[caglar@qop:~/go/src/gopkg.in/lxc/go-lxc.v2/examples] ./stats
2015/01/24 14:35:23 MemoryUsage: 10.34MB
2015/01/24 14:35:23 MemoryLimit: 128.00MB
2015/01/24 14:35:23 KernelMemoryUsage: 3.52MB
2015/01/24 14:35:23 KernelMemoryLimit: 3.52MB
2015/01/24 14:35:23 MemorySwapUsage: 10.34MB
@caglar10ur
caglar10ur / essentials.txt
Created January 25, 2016 23:40
Essential Packages
Linux-PAM
autoconf
automake
bash
bc
binutils
binutils-devel
bison
bzip2
coreutils
@caglar10ur
caglar10ur / profiling
Created May 3, 2016 20:59
profiling urls
https://golang.org/pkg/runtime/
https://golang.org/pkg/runtime/pprof/
https://golang.org/pkg/net/http/pprof/
https://golang.org/pkg/runtime/trace/
https://golang.org/cmd/trace/
http://stackoverflow.com/questions/32131339/the-go-1-5-trace-command
https://github.com/pkg/profile
https://github.com/davecheney/gcvis
@caglar10ur
caglar10ur / microk8s
Last active January 9, 2024 19:29
microk8s setup with istio
snap install microk8s --classic
sudo ufw default allow routed
sudo iptables -P FORWARD ACCEPT
microk8s.enable dns dashboard metrics-server
# grafana/dashboard
# http://IP:8080/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy/
# http://IP:8080/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/pod?namespace=default
microk8s.enable istio
@caglar10ur
caglar10ur / unifi.json
Created March 11, 2019 21:04
unifi.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
diff -u qmk_firmware/keyboards/massdrop/alt/keymaps/mac/keymap.c qmk_firmware/keyboards/massdrop/alt/keymaps/caglar10ur/keymap.c
--- qmk_firmware/keyboards/massdrop/alt/keymaps/mac/keymap.c 2019-04-19 17:36:12.000000000 -0700
+++ qmk_firmware/keyboards/massdrop/alt/keymaps/caglar10ur/keymap.c 2019-04-19 18:24:07.000000000 -0700
@@ -16,18 +16,18 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
- KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, \
- KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_HOME, \
- KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, \