Skip to content

Instantly share code, notes, and snippets.

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, \
@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",
@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 / 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 / essentials.txt
Created January 25, 2016 23:40
Essential Packages
Linux-PAM
autoconf
automake
bash
bc
binutils
binutils-devel
bison
bzip2
coreutils
[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 / iperf-clients
Created January 7, 2015 19:12
iperf-clients
#!/bin/bash
base_port=5000
# Command line input: server IP address
# E.g. 1.1.1.1
server_ip=$1
shift
# Command line input: number of clients to start
@caglar10ur
caglar10ur / iperf-servers
Created January 7, 2015 19:11
iperf-servers
#!/bin/bash
base_port=5000
# Command line input: number of servers
# E.g. 5
num_servers=$1
shift
# Command line input: base report file name
# E.g. report
@caglar10ur
caglar10ur / keybase.md
Last active April 25, 2018 17:41
keybase.io

Keybase proof

I hereby claim:

  • I am caglar10ur on github.
  • I am caglar10ur (https://keybase.io/caglar10ur) on keybase.
  • I have a public key ASBF_OJkBbxuSacZ2uT7g4Qmg_o89ncaw79e0lLyUchF0go

To claim this, I am signing this object:

@caglar10ur
caglar10ur / cgmanager.conf
Created January 16, 2014 19:24
/etc/init/cgmanager.conf
description "cgroup management daemon"
author "Serge Hallyn <serge.hallyn@ubuntu.com>"
respawn
# in trusty /sys/fs/cgroup will be mounted for us.
# prior to saucy, we would need to start on mounted
# MOUNTPOINT=/sys, and mount /sys/fs/cgroup ourselves
start on mounted MOUNTPOINT=/sys/fs/cgroup