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 / 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 / .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 / 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 / MenuBackIcon.qml
Created October 26, 2015 22:29 — forked from cyberbobs/MenuBackIcon.qml
Animated hamburger-back icon in Material Design style done in QML
import QtQuick 2.2
Item {
id: root
width: 24
height: 24
Rectangle {
id: bar1
x: 2
/*
* Test 1 - for..in with hasOwnProperty check.
*/
var counter = 0
var i
var p
var start = performance.now()
for (i=0; i<1000; i+=1) {
for (p in window) {
if (window.hasOwnProperty(p)) {}
@trusktr
trusktr / .vimrc
Last active April 1, 2016 17:43
.vimrc
Moved to https://github.com/trusktr/.vimrc
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.infamous=e():t.infamous=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){n(1),t.exports=n(292)},function(t,e,n){(function(t){"use strict";function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(2),n(287),n(289),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(funct