Skip to content

Instantly share code, notes, and snippets.

@emraher
emraher / fvc.json
Created May 23, 2023 21:36
Fine volume control (g915 tkl volume wheel) adapted from https://ke-complex-modifications.pqrs.org/#fine_volume_control
{
"title": "Fine volume control (g915 tkl volume wheel)",
"rules": [
{
"description": "Map volume wheel controls to fine volume controls (Option + Shift + Volume)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "volume_decrement"
@emraher
emraher / keybase.md
Last active September 14, 2021 13:36
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@emraher
emraher / 1-macOS-10.13-high-sierra-setup.md
Created May 14, 2018 07:40 — forked from kevinelliott/1-macOS-10.13-high-sierra-setup.md
macOS 10.13 High Sierra Mostly-Automated Setup

macOS 10.13 High Sierra Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.13 High Siera, in flavor of my previous macOS/OSX setup gists:

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

@emraher
emraher / disable.sh
Created May 14, 2018 07:38
Disable bunch of #$!@ in Sierra (Version 2.1)
#!/bin/bash
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# Agents to disable
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi
@emraher
emraher / spatial.R
Created January 30, 2018 08:03 — forked from devmag/spatial.R
R scripts to compute Conley Type Standard Errors
#####VECTORISED FUNCTION
library(data.table)
library(geosphere)
library(foreign)
library(lfe)
library(reshape)
iterateObs<-function(y1,e1,X1,fordist,coefficients,cutoff=250000) {
@emraher
emraher / tr.dcf
Created December 23, 2017 08:03
Turkish dcf for R package exams
PersonalData: Ki{\c s}isel Bilgiler
Name: Ad
FamilyName: Soyad
GivenName: Ad
Signature: {\.I}mza
RegistrationNumber: {\"O}{\u g}renci Numaras{\i}
Checked: Kontrol Edilmi{\c s}
NoChanges: Bu b{\"o}l{\"u}mde de{\u g}i{\c s}iklik \textbf{yap{\i}lmamal{\i}d{\i}r}!
DocumentType: T{\"u}r
DocumentID: S{\i}nav Numaras{\i}
@emraher
emraher / mode.R
Created November 1, 2017 08:13
Mode function for R
# SEE
# https://myrgiovanni.blogspot.com.tr/2016/07/computing-mode-in-r.html
# https://stackoverflow.com/a/25635740
# https://stackoverflow.com/a/22123729
Mode <- function(x, na.rm = FALSE, mult = TRUE) {
if(na.rm) {
x = x[!is.na(x)]
}
@emraher
emraher / hdmexample.R
Created October 26, 2017 22:31
hdm example
set.seed(pi)
n <- 1000 #sample size
p <- 1000 # number of variables
s <- 30 # nubmer of non-zero variables
X <- matrix(rnorm(n * p), ncol = p)
colnames(X) <- paste("X", 1:p, sep = "")
beta <- c(rep(3, s), rep(0, p - s))
@emraher
emraher / custom.css
Created September 15, 2017 00:16
Vivaldi Custom CSS
/*==========================================================*/
/* qutebrowser-ish Vivaldi */
/*==========================================================*/
.mac #header {
min-height: 16px !important;
}
.mac #tabs-container.top {
padding-left: 0 !important;
padding-right: 0 !important;
}
@emraher
emraher / SurfingkeysDraculaThemeAttempt.txt
Last active February 21, 2024 13:02
Surfingkeys Dracula Theme Attempt
// -----------------------------------------------------------------------------------------------------------------------
// // Surfingkeys: https://github.com/brookhong/Surfingkeys#properties-list
// // Dracula Theme: https://github.com/dracula/dracula-theme#color-palette
// -----------------------------------------------------------------------------------------------------------------------
// Map Keys
// -----------------------------------------------------------------------------------------------------------------------
// Change default search engine
//settings.defaultSearchEngine = "w";
// -----------------------------------------------------------------------------------------------------------------------
// Change hints styles