Skip to content

Instantly share code, notes, and snippets.

View mabutou's full-sized avatar
🏠
Working from home

mabutou

🏠
Working from home
View GitHub Profile
@mabutou
mabutou / karabiner_switch_input_source.json
Created May 6, 2022 07:13 — forked from gxfxyz/karabiner_switch_input_source.json
Karabiner-Elements config: switch input source | 输入法切换
{
"title": "Switch input source | 输入法切换",
"rules": [
{
"description": "Tap Command_L (⌘) → Switch input source to English | 短按左 Command (⌘) → 切换到英文输入法",
"manipulators": [
{
"conditions": [
{
"input_sources": [
@mabutou
mabutou / karabiner_capslock_control_tab.json
Created May 6, 2022 07:13 — forked from gxfxyz/karabiner_capslock_control_tab.json
Karabiner-Elements config: CapsLock / Control / Tab
{
"title": "CapsLock / Control / Tab",
"rules": [
{
"description": "Tap CapsLock (⇪) → Escape (⎋); Hold CapsLock (⇪) → Control (⌃)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
@mabutou
mabutou / bash-history-to-zsh-history.py
Created May 30, 2020 03:16 — forked from dllud/bash-history-to-zsh-history.py
Import bash history (has no timestamps) to zsh history.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-history-to-zsh-history.py >> ~/.zsh_history
import sys
import time
def main():
@mabutou
mabutou / nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Created May 27, 2020 08:12 — forked from ismailyenigul/nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Docker-compose file for nextcloud with pgsql,redis and traefik deployment
# docker network create nextcloud
NOTES:
1. [email protected]
2. TRUSTED_PROXIES values based on your 'nexcloud network'
3. remove traefik.http.middlewares.nextcloud.headers.contentSecurityPolicy and
traefik.http.middlewares.nextcloud.headers.customFrameOptionsValue if you don't want to allow iframe your domain
3
# cat docker-compose.yml
@mabutou
mabutou / bash-to-zsh-hist.py
Created May 25, 2020 09:13 — forked from muendelezaji/bash-to-zsh-hist.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@mabutou
mabutou / GitConfigHttpProxy.md
Created March 24, 2020 02:37 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like: