Skip to content

Instantly share code, notes, and snippets.

View maxmellen's full-sized avatar
🐝

Maximilien Mellen maxmellen

🐝
  • メルカリ
  • 東京
View GitHub Profile
CXX = clang++
CXXFLAGS = -std=c++14 -O3 -pedantic -Wall -Wextra -Werror
LDLIBS = -lsqlite3
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
EXEC = cqlite
.PHONY: all
all: $(EXEC)
# .zprofile
alias ll="ls -lhAF"
alias delta=_delta_auto_dark
alias code="code-insiders"
rf() {
read -q "?rm -rf $*? " && rm -rf "$@"
echo
}
export default function y<T extends (...args: any) => any>(f: (t: T) => T): T {
function g(x: typeof g): T {
return function(...args) {
return f(x(x))(...args);
} as T;
}
return g(g);
}
for file in $HOME/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision; do
/usr/libexec/PlistBuddy -c 'Print :Entitlements:application-identifier' /dev/stdin \
<<< $(security cms -D -i "$file")
done
[core]
editor = nvim
pager = zsh -c _delta_auto_dark
excludesfile = ~/.gitignore_global
[init]
defaultBranch = main
[rebase]
autoStash = true
autoSquash = true
[interactive]
set fish_greeting ""
set --export LANG "C"
alias imx='iex -S mix'
alias iphx='iex -S mix phx.server'
function fish_prompt --description 'Write out the prompt'
set -g __fish_git_prompt_showcolorhints
set -g __fish_git_prompt_showdirtystate
set -g __fish_git_prompt_showstashstate
#!/bin/sh -e
current_dir=$(pwd)
for plugin in "$(dirname "$0")"/*; do
if [ -d "$plugin" ]; then
cd "$plugin";
if [ -e .git ]; then
printf "Updating $(basename "$plugin"): "
git pull
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'
{
/* インデント */
"editor.tabSize": 2,
"editor.rulers": [80, 120],
/* フォント */
"editor.fontFamily": "'IBM Plex Mono', 'IBM Plex Sans JP'",
"editor.fontSize": 14,
"debug.console.fontSize": 14,
"terminal.integrated.fontSize": 14,
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.