Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Andres Moreno mmore500

View GitHub Profile
@mmore500
mmore500 / Random.h
Last active Nov 24, 2019
emp::Random::RandFill profile
View Random.h
/**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2015-2019
*
* @file Random.h
* @brief A versatile and non-patterned pseudo-random-number generator.
* @note Status: RELEASE
*/
@mmore500
mmore500 / Random.h
Last active Nov 24, 2019
emp::Random::GetUInt64 profile
View Random.h
/**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2015-2019
*
* @file Random.h
* @brief A versatile and non-patterned pseudo-random-number generator.
* @note Status: RELEASE
*/
@mmore500
mmore500 / apps.css
Created Nov 26, 2017
/usr/share/themes/elementary/gtk-3.0/apps.css
View apps.css
/*
* Copyright (c) 2011-2016 elementary LLC. (http://launchpad.net/egtk)
*
* This program 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 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
View overflow-test
"Fourscore and seven years ago our fathers brought forth, on this continent, a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived, and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting-place for those who here gave their lives, that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate, we cannot consecrate—we cannot hallow—this ground. The brave men, living and dead, who struggled here, have consecrated it far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is ra
@mmore500
mmore500 / log-plugout.sh
Last active Oct 28, 2018
/usr/bin/log-plugout.sh
View log-plugout.sh
#!/bin/bash
date >> /var/log/plugout.log
lsusb >> /var/log/plugout.log
echo "dividerdivider" >> /var/log/plugout.log
@mmore500
mmore500 / mylang.map
Last active Oct 28, 2018
~/.config/logkeys/mylang.map
View mylang.map
<Esc>
1 ! 1
2 @ 2
3 # 3
4 $ 4
5 % 5
6 ^ 6
7 & 7
8 * 8
9 ( 9
@mmore500
mmore500 / 2018-08-03_2018-10-26_70257977_sleepData.json
Created Oct 27, 2018
2018-08-03_2018-10-26_70257977_sleepData.json
View 2018-08-03_2018-10-26_70257977_sleepData.json
[
{
"sleepStartTimestampGMT": {
"date": 1533268800000,
"localDate": {
"year": 2018,
"month": "AUGUST",
"chronology": {
"calendarType": "iso8601",
"id": "ISO"
@mmore500
mmore500 / mmore500.login@gmail.com_23708320392.csv
Last active Oct 27, 2018
mmore500.login@gmail.com_23708320392.csv
View mmore500.login@gmail.com_23708320392.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 27 columns, instead of 7. in line 8.
Type,Local Number,Message,Field 1,Value 1,Units 1,Field 2,Value 2,Units 2,Field 3,Value 3,Units 3,Field 4,Value 4,Units 4,Field 5,Value 5,Units 5,Field 6,Value 6,Units 6,Field 7,Value 7,Units 7,Field 8,Value 8,Units 8
Definition,0,file_id,serial_number,1,,time_created,1,,manufacturer,1,,product,1,,number,1,,unknown,1,,type,1,,,,
Data,0,file_id,serial_number,3951179934,,time_created,903067200,,manufacturer,1,,garmin_product,2622,,number,39,,type,32,,,,,,,
Definition,1,device_info,timestamp,1,,serial_number,1,,manufacturer,1,,product,1,,software_version,1,,,,,,,,,,
Data,1,device_info,timestamp,903067200,s,serial_number,3951179934,,manufacturer,1,,garmin_product,2622,,software_version,4.6,,,,,,,,,,
Definition,2,software,version,1,,,,,,,,,,,,,,,,,,,,,,
Data,2,software,version,4.3,,,,,,,,,,,,,,,,,,,,,,
Definition,3,monitoring_info,timestamp,1,,local_timestamp,1,,cycles_to_distance,2,,cycles_to_calories,2,,unknown,2,,resting_metabolic_rate,1,,activity_type,2,,unknown,1,
Data,3,monitoring_info,timestamp,903067200,s,
View 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
@mmore500
mmore500 / log-plugin.sh
Created Oct 24, 2018
/usr/bin/log-plugin.sh
View log-plugin.sh
#!/bin/bash
date >> /var/log/plugin.log