Skip to content

Instantly share code, notes, and snippets.

View djsmiley2k's full-sized avatar

Tim Bowers djsmiley2k

View GitHub Profile
tim@MushaV3 ~ $ sudo tail -10 /var/log/messages
Password:
Apr 22 09:00:01 MushaV3 run-crons[30210]: (root) CMD (/etc/cron.hourly/vnstat)
Apr 22 09:55:58 MushaV3 smartd[4426]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 77 to 78
Apr 22 09:55:58 MushaV3 smartd[4426]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 23 to 22
Apr 22 10:00:01 MushaV3 run-crons[1005]: (root) CMD (/etc/cron.hourly/vnstat)
Apr 22 10:55:58 MushaV3 smartd[4426]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 78 to 77
Apr 22 10:55:58 MushaV3 smartd[4426]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 22 to 23
Apr 22 10:55:58 MushaV3 smartd[4426]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 124 to 123
Apr 22 11:00:01 MushaV3 run-crons[3656]: (root) CMD (/etc/cron.hourly/vnstat)
php > $lines = shell_exec("tail -10 '/var/log/screen/' . $hostname . '.log'");
tail: option used in invalid context -- 1
cat ./gphotos-sync-2.10.3.ebuild
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PV=${PV/_beta/-beta.}
MY_P=${PN}-${MY_PV}
PYTHON_COMPAT=( python3_{5,6} )
@djsmiley2k
djsmiley2k / vpn_split_tunneling_script.sh
Created March 27, 2019 14:51 — forked from dkoloditch/vpn_split_tunneling_script.sh
OS X Cisco IPSEC VPN Post-Connection Split-Tunneling Script
#! /usr/bin/env bash
# per http://www.shadabahmed.com/blog/2013/08/11/split-tunneling-vpn-routing-table/
if (( EUID != 0 )); then
echo "Please, run this command with sudo" 1>&2
exit 1
fi
WIRELESS_INTERFACE=en0
TUNNEL_INTERFACE=utun0
GATEWAY=$(netstat -nrf inet | grep default | grep $WIRELESS_INTERFACE | awk '{print $2}')
#!/usr/bin/python
import sys
import re
import os
import urllib
import urllib2
import gdata.photos
import gdata.photos.service