Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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.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 / 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
<?php
/**
* Api_v1_0_0Controller
* @package pbp
* @subpackage controller
*/
class Api_v1_0_0Controller extends SiteController {
##
# Installing PHP 5.4 on centos 6.6
##
sudo yum install centos-release-SCL
sudo yum clean all
sudo yum makecache
sudo yum install php54-php-bcmath php54 php54-php-cli php54-php-gd php54-php-ldap php54-php-mbstring php54-php-xmlrpc php54-php php54-php-pdo php54-php-pear php54-php-pecl-apc php54-php-mysqlnd php54-php-process
source /opt/rh/php54/enable
# Check if it works:
@chesster
chesster / .vimrc
Last active August 29, 2015 14:17
use w!! command to write files as root in Vim
cmap w!! w !sudo tee % >/dev/null
@chesster
chesster / .vimrc
Last active August 29, 2015 14:16
use ranger as file chooser for vim
function! RangeChooser()
let temp = tempname()
exec 'silent !ranger --choosefile=' . shellescape(temp)
" exec 'silent !ranger --choosefiles=' . shellescape(temp)
if !filereadable(temp)
redraw!
return
endif
let names = readfile(temp)
if empty(names)
@chesster
chesster / tig
Created February 12, 2015 12:02
2015-01-26 11:13 Lukasz Malik M─┐ Merge branch 'DM-60' into develop
2014-12-19 15:57 Lukasz Malik │ o DM-60
2015-01-12 16:49 Lukasz Malik o │ PBP-440 - removed console.logs
2015-01-12 16:24 Łukasz Malik M─┐ Merged in abobola/pbp_web/bugfix-PBP-446 (pull request #8)
2015-01-12 16:22 Łukasz Malik M─┐ Merged in abobola/pbp_web/bugfix-PBP-437-payments (pull request #6)
2015-01-12 12:20 Anna Bobola │ │ o PBP-446: coachs permissions
2015-01-07 16:06 Lukasz Malik I─│─┘ PBP-442
2015-01-02 15:12 Anna Bobola │ o PBP-437: transaction_id
2014-12-18 16:38 Lukasz Malik │ │ o DM-60
2014-12-18 16:27 Łukasz Malik I─┐ │ Merged in abobola/pbp_web/bugfix-payments-per-month (pull request #5)