Skip to content

Instantly share code, notes, and snippets.

@kiyui
kiyui / makefile
Last active August 29, 2015 14:05
Simple makefile
#CC = gcc or g++
CC = gcc
#CFLAGS are compile flags such as -lm to include <math.h>
#or -std=c++0x for C++11
CFLAGS = -Wall -std=c99
#TARGET is the name of your main file
TARGET = myMain
#OBJECTS = $(TARGET).o library1.o library.o, all the header files here
OBJECTS = $(TARGET).o myLib.o
#EXTRA Command line arguments
@kiyui
kiyui / .vimrc
Last active February 19, 2016 05:54
" Use VIM
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
" SECTION Vundle
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
@kiyui
kiyui / bash.bashrc
Last active August 29, 2015 14:14
bash.bashrc
#
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Bash colors
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
@kiyui
kiyui / timur.zsh-theme
Last active February 19, 2016 08:00
timur.zsh-theme
# TIMUR ZSH Theme
function directory_information {
if [[ -f .on_cd ]]
then
if [[ -f .on_cd_lock ]]
then
echo " "
else
echo " "
@kiyui
kiyui / server.conf
Created April 11, 2015 14:16
OpenVPN Config
########################################
# Sample OpenVPN config file for
# 2.0-style multi-client udp server
#
# Adapted from http://openvpn.sourceforge.net/20notes.html
#
# tun-style tunnel
port 443
proto tcp-server
@kiyui
kiyui / javacc5.sh
Last active February 29, 2016 03:11
javacc 5 install script
#!/bin/sh
# Installs javacc 5
# My friends are just too lazy =,=
# Bash colors
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
@kiyui
kiyui / init.vim
Last active April 17, 2019 14:20
neovim configuration
" File: `~/.config/nvim/init.vim`
filetype off
" Required for Python on MacOS
"
" brew install python
" brew install python3
" pip2 install neovim --upgrade
" pip3 install neovim --upgrade
"
@kiyui
kiyui / SSH Config
Last active June 13, 2017 13:03
SSH configuration file: ~/.ssh/config
Host $HOST
IdentitiesOnly yes
Hostname $IP
IdentityFile ~/.ssh/$private_key
User $username
Host aur.archlinux.org
IdentityFile ~/.ssh/aur
User aur
@kiyui
kiyui / crack-keepass.sh
Created March 19, 2017 01:23
Brute force a Keepass database file with a dictionary attack
#!/bin/sh
# Usage: ./crack-keepass.sh passwords.kdbx dict.txt
#
# The dictionary file can be generated with:
# https://github.com/TimurKiyivinski/permutatify
while read i
do
echo "Using password: \"$i\""
@kiyui
kiyui / docker-compose.yml
Created March 20, 2017 05:46
Gitlab & Gitlab CI Docker Compose
version: "2"
services:
gitlab:
image: gitlab/gitlab-ce
network_mode: "bridge"
restart: always
volumes:
- './gitlab/config:/etc/gitlab'
- './gitlab/logs:/var/log/gitlab'
- './gitlab/data:/var/opt/gitlab'