Skip to content

Instantly share code, notes, and snippets.

View trusktr's full-sized avatar
📜
writing code

Joe Pea trusktr

📜
writing code
View GitHub Profile
@trusktr
trusktr / linked_list.h
Created November 5, 2011 00:33
My permute_append class.
/* Joe Pea - Assignment 5 */
// FILE: linked_list.h
// TEMPLATE CLASS PROVIDED:
// sequence<Item> (part of the namespace CISP430_A3)
// This is a container class for a sequence of items,
// where each List may have a designated item called the current item).
// The template parameter <value_type> is the data type of the items
// in the List. It may be any of the C++ built-in types (int, char, etc.),
// or a class with a default constructor, an assignment operator,
@trusktr
trusktr / .vimrc
Last active April 1, 2016 17:43
.vimrc
Moved to https://github.com/trusktr/.vimrc
@trusktr
trusktr / PKGBUILD
Last active August 29, 2015 13:56
AUR/gitlab-shell
# Maintainer: Jonas Heinrich <onny@project-insnaity.org>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Jonas Heinrich <onny@project-insnaity.org>
# Contributor: Joseph Orbegoso Pea <trusktr@gmail.com>
pkgname=gitlab-shell
pkgver=1.8.0
pkgrel=2
pkgdesc="Self hosted Git management software. (shell daemon)"
arch=(any)
@trusktr
trusktr / 10-gitlab.conf
Last active August 29, 2015 13:56
AUR/gitlab
# GITLAB
# Maintainer: @tvn87
# App Version: 2.8
server.modules += (
"mod_simple_vhost",
"mod_proxy"
)
## The document root of a virtual host is document-root =
@trusktr
trusktr / .bashrc
Last active April 23, 2020 21:33
Bash configuration with custom prompt, aliases, and some other goodies.
# vim: set ft=sh:
#
# /etc/bash.bashrc.custom
#
## BEGIN ENVIRONMENT VARS
# Add local ruby gems to our PATH. How to add system-wide gems?
export PATH=$PATH:~/.gem/ruby/1.9.1/bin
# proper encoding for the linux terminal (ttys)
@trusktr
trusktr / .xinitrc
Last active August 29, 2015 14:02
Xorg initrc configuration.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
@trusktr
trusktr / gist:356e4f6f2840827ea9ea
Created June 12, 2014 08:10
Touch emulation shell script for Android.
sleep 10
while [ 1 ]; do
input swipe 700 380 1020 600 1000
input tap 960 540
input swipe 1220 700 900 480 1000
input tap 960 540
input swipe 1220 700 900 480 1000
input tap 960 540
set-option -g default-shell /bin/zsh
set -g default-command /bin/zsh
set -g default-terminal "screen-256color"
# Choose your favorite prefix key.
unbind C-b
set -g prefix C-a
bind C-a send-prefix
#?
@trusktr
trusktr / DefaultKeyBinding.dict
Last active December 6, 2024 19:34
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@trusktr
trusktr / assets.md
Last active October 15, 2024 21:03
assets in the comments

assets in the comments