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/python | |
import sys | |
import re | |
import os | |
import urllib | |
import urllib2 | |
import gdata.photos | |
import gdata.photos.service |
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 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}') |
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
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} ) |
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
php > $lines = shell_exec("tail -10 '/var/log/screen/' . $hostname . '.log'"); | |
tail: option used in invalid context -- 1 |
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
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) |