Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Andres Moreno mmore500

View GitHub Profile
@mmore500
mmore500 / log-wifi
Created Oct 24, 2018
/etc/network/if-up.d/log-wifi
View log-wifi
#!/bin/bash
date >> /var/log/wifi-log.log
iwconfig >> /var/log/wifi-log.log
@mmore500
mmore500 / logkeys-start.sh
Created Oct 23, 2018
/etc/init.d/logkeys-start.sh
View 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 / pdfpcrc
Created Jul 11, 2018
~/.config/pdfpc/pdfpcrc
View pdfpcrc
bind Down next
bind Up prev
bind Right nextOverlay
bind Left prevOverlay
View .tmux.conf
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 / example.html
Last active Jan 22, 2018
excerpt from my Jekyll site
View example.html
<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"];
@mmore500
mmore500 / main.tex
Created Jan 22, 2018
Business Card Latex
View main.tex
\documentclass{article}
\title{Business Card}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{empheq}
\makeatletter
\DeclareRobustCommand*{\pmzerodot}{%
\nfss@text{%
@mmore500
mmore500 / pc
Last active Jan 19, 2018
/usr/share/X11/xkb/symbols/pc
View pc
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Escape ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };
@mmore500
mmore500 / gtk-dark.css
Created Nov 26, 2017
/usr/share/themes/elementary/gtk-3.0/gtk-dark.css
View 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 / hosts
Last active Jan 19, 2018
/etc/hosts
View 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