Skip to content

Instantly share code, notes, and snippets.

View cevhyruz's full-sized avatar
:octocat:
Constantly learning stuff

John Fred Fadrigalan cevhyruz

:octocat:
Constantly learning stuff
View GitHub Profile
@cevhyruz
cevhyruz / git-loglive-status
Last active January 15, 2018 16:36
git live logging with working directory status for linux
#!/usr/bin/env bash
# Save in $HOME/.local/bin/scripts
# Make it executable
# $ sudo chmod +x git-loglive-status
# Add to my $PATH
# echo -e "# my custom script directory\nexport PATH='$HOME/.local/bin/scripts'":'"$PATH"' >>~/.profile
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
set -g status-keys vi
setw -g mode-keys vi
# Replace main key binding 'ctrl-b' with 'ctrl-w'
unbind C-b
unbind l
set -g prefix C-a
@cevhyruz
cevhyruz / starttmux.sh
Created December 29, 2017 05:19 — forked from todgru/starttmux.sh
Start up tmux with custom windows, panes and applications running
#!/bin/sh
#
# Setup a work space called `work` with two windows
# first window has 3 panes.
# The first pane set at 65%, split horizontally, set to api root and running vim
# pane 2 is split at 25% and running redis-server
# pane 3 is set to api root and bash prompt.
# note: `api` aliased to `cd ~/path/to/work`
#
session="work"
@cevhyruz
cevhyruz / keybindings.json
Last active January 22, 2018 15:16
vscode settings
//Place your key bindings in this file to overwrite the defaults
[
//----- Terminal ------//
// toggle terminal
{
"key": "ctrl+j",
"command": "workbench.action.terminal.toggleTerminal"
},
@cevhyruz
cevhyruz / migrate
Created January 22, 2018 15:09
bash script for my personal development setup migration for kali (still editing)
#!/usr/bin/env bash
#DOWNLOAD GOOGLE CHROME
#fix
#Edit /etc/apt/sources.list
sudo apt-get update
dpkg --configure -a
reboot
@cevhyruz
cevhyruz / vim74_lua
Last active August 10, 2018 08:33 — forked from jdewit/vim74_lua
Installing vim 7.4 with lua on Ubuntu 12.04
# remove distributed packages
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
# for gvim
# sudo apt-get build-dep vim-gtk
# for gnome-vime
sudo apt-get build-dep vim-gnome
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
@cevhyruz
cevhyruz / pycurses.py
Created January 24, 2018 17:16 — forked from claymcleod/pycurses.py
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()
@cevhyruz
cevhyruz / caps-as-bs.reg
Created February 6, 2018 06:57
map capslock as backspace in windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,0E,00,3a,00,3a,00,46,00,00,00,00,00