Skip to content

Instantly share code, notes, and snippets.

View irJERAD's full-sized avatar

Jerad Acosta irJERAD

View GitHub Profile
@irJERAD
irJERAD / keybase.md
Created September 25, 2017 11:13
proof for keybase.io

Keybase proof

I hereby claim:

  • I am irjerad on github.
  • I am irjerad (https://keybase.io/irjerad) on keybase.
  • I have a public key ASDqJ4lQ0JefUk1d_XTAtSXht9BUQd7VGifGcenNu8KsBAo

To claim this, I am signing this object:

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
# KEEP UBUNTU OR DEBIAN UP TO DATE
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# INSTALL THE DEPENDENCIES
#!/bin/bash
# OpenCV install script for linux with python and C++ bindings
JOBS=`lscpu | awk ' /CPU\(s\):/ {print $2}' | head -n1` # Sets the amount of jobs when compiling to the detected amount of cores
echo "================================================================================================================================"
echo "This script will install the latest OpenCV from source with Python and C++ bindings. (Currently for only x86_64 architechtures)"
echo "This script needs QT installed (0r remove -D WITH_QT=ON from build options)"
echo "Please note that OpenCV is a very large download."
echo "You may also require to download a few packages, please set your repository to ftp.sun.ac.za to download them for free"
@irJERAD
irJERAD / RScript-Launch-Automation.plist
Created February 22, 2017 16:12
Automate your R Script to run on a schedule, Initiate during 1 specific minute a year or once every minute. Great for web scraping and any data collection. Change `com.file.name` to com.YourFilesActualName (without the .sh at the end). Path should be to your shell script. Only need to keep the arguments you use: so once per hour would just requi…
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.file.name</string>
<key>ProgramArguments</key>
<array>
<string>/Path/to/shell/script/rShellScript.sh</string>
</array>
@irJERAD
irJERAD / apple_health_load_analysis_R.r
Last active January 3, 2017 17:55 — forked from ryanpraski/apple_health_load_analysis_R.r
Load Apple Health Kit export.xml file in R then analyze and visualize Steps Data using R
library(dplyr)
library(ggplot2)
library(lubridate)
library(XML)
#load apple health export.xml file from download folder after unzipped - iMac file path
xml <- xmlParse("/Users/irJERAD/Downloads/apple_health_export/export.xml")
#transform xml file to data frame - select the Record rows from the xml file
df <- XML:::xmlAttrsToDataFrame(xml["//Record"])