Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Api_v1_0_0Controller
* @package pbp
* @subpackage controller
*/
class Api_v1_0_0Controller extends SiteController {
@chesster
chesster / configuration.jsp
Last active October 21, 2016 14:11
Sire-Notifications
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
@chesster
chesster / init.vim
Last active January 2, 2018 19:38
vimrc for neoVim
" Key Bindings {{{
"
" }}}
" Setup Plugins [VimPlug] {{{
" Autoloading
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall sync | source $MYVIMRC
@chesster
chesster / karabiner.json
Created January 1, 2018 20:41
Karabinier Config
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@chesster
chesster / init.lua
Created January 1, 2018 20:45
Hammerspoon config
-- Misc setup
hs.window.animationDuration = 0
local vw = hs.inspect.inspect
local configFileWatcher = nil
local appWatcher = nil
-- Keyboard modifiers, Capslock bound to cmd+alt+ctrl+shift via Seil and Karabiner
local modNone = {""}
local mAlt = {"⌥"}
local modCmd = {"⌘"}
@chesster
chesster / .zshrc
Last active January 24, 2018 01:08
ZSH config
export CLICOLOR=1
export ZSH=/Users/lukasz/.oh-my-zsh
export SSH_KEY_PATH="~/.ssh/rsa_id"
source $HOME/.iterm2_shell_integration.zsh
source $HOME/.config/nvim/plugged/gruvbox/gruvbox_256palette_osx.sh
source /usr/local/Cellar/autojump/22.5.1/etc/autojump.sh
source $HOME/.profile
source $ZSH/oh-my-zsh.sh
source $HOME/.shell_prompt.sh
@chesster
chesster / .tmux.conf
Created January 1, 2018 20:51
TMUX config
if-shell "test -f .tmux_line" "source .tmux_line"
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g history-limit 30000
setw -g alternate-screen on
set -s escape-time 50
@chesster
chesster / .gitconfig
Created January 1, 2018 21:35
Git config
[color]
ui = true
[alias]
my = shortlog -w0,0,0 --author='Malik' --format='%ai %s' --no-merges
st = status
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
ci = commit
co = checkout
df = diff
@chesster
chesster / jsontocsv.sh
Created January 12, 2018 00:41
json to csv with jq
jq -r '(.[0] | keys_unsorted) as $keys | $keys, map([.[ $keys[] ]])[] | @csv' plik.json >> plik.csv
@chesster
chesster / symbollist.json
Last active January 16, 2018 20:47
cryptocoin exchange list
[
"ADABTC",
"ADXBTC",
"AIONBTC",
"AMBBTC",
"APPCBTC",
"ARKBTC",
"ARNBTC",
"ASTBTC",
"BATBTC",