Skip to content

Instantly share code, notes, and snippets.

View mmore500's full-sized avatar

Matthew Andres Moreno mmore500

View GitHub Profile
@mmore500
mmore500 / hosts
Last active January 19, 2018 02:03
/etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
@mmore500
mmore500 / gtk-dark.css
Created November 26, 2017 07:02
/usr/share/themes/elementary/gtk-3.0/gtk-dark.css
/* Copyright 2011-2015 elementary LLC.
*
* This file is part of the elementary GTK theme.
*
* The elementary GTK theme is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* The elementary GTK theme is distributed in the hope that it will be
@mmore500
mmore500 / main.tex
Created January 22, 2018 21:32
Business Card Latex
\documentclass{article}
\title{Business Card}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{empheq}
\makeatletter
\DeclareRobustCommand*{\pmzerodot}{%
\nfss@text{%
@mmore500
mmore500 / example.html
Last active January 22, 2018 21:36
excerpt from my Jekyll site
<script type="text/javascript">
images_list= {{ site.data.images | jsonify }}
console.log(images_list)
function getImageHTML() {
var html_code = '<img src=\"';
var randomIndex = Math.floor(Math.random() * images_list.length);
html_code += images_list[randomIndex]["href"];
source /usr/local/lib/python3.5/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"
# remap prefix to Control + a
set -g prefix C-t
# bind 'C-a C-a' to type 'C-a'
bind C-q send-prefix
unbind C-b
setw -g mode-keys vi
unbind p
@mmore500
mmore500 / pdfpcrc
Created July 11, 2018 02:26
~/.config/pdfpc/pdfpcrc
bind Down next
bind Up prev
bind Right nextOverlay
bind Left prevOverlay
@mmore500
mmore500 / logkeys-start.sh
Created October 23, 2018 02:55
/etc/init.d/logkeys-start.sh
#!/bin/bash
### BEGIN INIT INFO
# Provides: logkeys-start
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Halts USB power...
### END INIT INFO
@mmore500
mmore500 / log-wifi
Created October 24, 2018 21:58
/etc/network/if-up.d/log-wifi
#!/bin/bash
date >> /var/log/wifi-log.log
iwconfig >> /var/log/wifi-log.log
@mmore500
mmore500 / log-plugin.sh
Created October 24, 2018 22:15
/usr/bin/log-plugin.sh
#!/bin/bash
date >> /var/log/plugin.log
@mmore500
mmore500 / crontab
Created October 24, 2018 22:16
/etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command