This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name www.example.com; | |
rewrite ^ $scheme://example.com$request_uri?; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Razer Tartarus v3 dont clobber other shortcuts", | |
"rules": [ | |
{ | |
"description": "Razer 01 to Left_Shift-Left_Option-a", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "device_if", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################## | |
# Navigation (focussing) | |
############################################## | |
# Windows: Alt + [DIR] | |
shift + alt - h : yabai -m window --focus west | |
shift + alt - j : yabai -m window --focus south | |
shift + alt - k : yabai -m window --focus north | |
shift + alt - l : yabai -m window --focus east |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# startup script | |
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | |
sudo yabai --load-sa | |
# ~/.config/yabai/yabairc | |
# global settings | |
yabai -m config mouse_follows_focus off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"strings" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type View struct { | |
Title string | |
Width int | |
Height int | |
Content string | |
} | |
type model struct { | |
currentView int | |
views []View |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ____ __ __ __ __ _ | |
# ____ ___ / __/___ _/ /_ / /_ ____ _/ /_/ /_(_) | |
# / __ `__ \/ /_/ __ `/ __ \/ __ \/ __ `/ __/ __/ / | |
# / / / / / / __/ /_/ / /_/ / / / / /_/ / /_/ /_/ / | |
#/_/ /_/ /_/_/ \__, /_.___/_/ /_/\__,_/\__/\__/_/ | |
# /____/ | |
# | |
# https://gist.github.com/mfgbhatti/2c2ea5da5d6d7e608d90fd43d4daa4a8 |
OlderNewer