alias git-tree='git log --oneline --decorate --all --graph'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
dmesg -T| grep -E -i -B100 'killed process'
#!/bin/bash
stats=””
echo "% user"
echo "============"
# collect the data
for user in `ps aux | grep -v COMMAND | awk '{print $1}' | sort -u`
do
The script below will allow you to run gui programs from crontab
usage: * * * * /path/to/belowcode.sh "gui application"
#!/bin/bash
# Check whether the user is logged in Mate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Use py.test: | |
# $ py.test test_mock.py | |
from unittest.mock import patch | |
import os.path | |
def my_isfile(filename): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Learning Task: | |
Given a sequence, predict a label based on the first value of the sequence | |
Explanation of stateful LSTM and setup: | |
http://philipperemy.github.io/keras-stateful-lstm/ | |
Exmple: | |
given a sequence [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], predict 1 | |
given a sequence [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], predict 0 |