Skip to content

Instantly share code, notes, and snippets.

@mystelynx
mystelynx / zshrc
Last active February 17, 2021 23:41
zgen with prezto
# zgen
export ZGEN_RESET_ON_CHANGE=($HOME/.zshrc)
source $HOME/src/github.com/tarjoilija/zgen/zgen.zsh
if ! zgen saved; then
echo "Creating a zgen save"
zgen prezto editor key-bindings 'emacs'
zgen prezto prompt theme 'sorin'
#cloud-config
coreos:
units:
- name: docker.service
drop-ins:
- name: 10-mount-private.conf
content: |
[Service]
MountFlags=private
@mystelynx
mystelynx / qiita-select-code-block.user.js
Last active November 9, 2015 06:14 — forked from vzvu3k6k/qiita-select-code-block.user.js
Qiitaの記事内のコード部分を楽にコピペする ref: http://qiita.com/vzvu3k6k/items/0a0abb0e848ed2c10651
// ==UserScript==
// @name Qiita: Select code block
// @description コードの右上のアイコンをクリックすると選択される
// @version 1.1
// @match http://qiita.com/*
// @match https://*.qiita.com/*
// @namespace http://qiita.com/uraura/
// @license Public Domain
// ==/UserScript==
#cloud-config
coreos:
units:
- name: coreos-docker-mkdir.service
command: start
runtime: yes
content: |
[Unit]
Before=docker.service var-lib-docker.mount
@mystelynx
mystelynx / zshrc
Created November 4, 2015 21:43
antibody version
# antibody
source "$(brew --prefix)/share/antibody.zsh"
antibody bundle <<__EOP__
djui/alias-tips
caarlos0/zsh-open-github-pr
caarlos0/zsh-mkc
caarlos0/zsh-git-sync
TBSliver/zsh-plugin-colored-man
b4b4r07/enhancd
@mystelynx
mystelynx / local.yml
Last active April 28, 2022 23:07
housekeeper
- hosts: localhost
tasks:
- name: update homebrew
homebrew: update_homebrew=yes
- name: upgrade all packages
homebrew: upgrade_all=yes
- name: tap homebrew repositories
homebrew_tap: tap={{ item }} state=present
@mystelynx
mystelynx / 0_reuse_code.js
Created August 29, 2014 00:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
config.vm.define 'ec2' do |ec2|
ec2.vm.provider :aws do |aws, override|
aws.access_key_id = 'xxx'
aws.secret_access_key = 'yyy'
aws.keypair_name = 'zzz'
aws.region = 'ap-northeast-1'
aws.subnet_id = 'subnet-xxxxxxx'
aws.private_ip_address = '172.31.15.251'
enum SQLKEY {
BARからの抽出,
FOOからの抽出,
;
}
@mystelynx
mystelynx / SomeClass.java
Created November 28, 2013 12:11
SpringのXMLでSQL定義1
public class SomeClass {
String aSql;
String bSql;
String cSql;
...
}