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
df -h | grep -e "/home$" | awk '{print $5}' | tr '%' ' ' | xargs -n 1 -I{} echo {} | xargs -n1 -I_percent -- sh -c '[ _percent -ge 70 ] && echo "Low Space on server:/home (_percent% full)" | mail -s "Disk Space Alert" johndoe@site.com' |
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
history | awk '{ print $2}' | sort | uniq -c | sort -n | tail -n 30 | sed -n '{s/^[ \t]*//};p' | gnuplot -p -e 'set xtics rotate out;set style data histogram;set style fill solid 1.0 border -1;plot "-" u 1:xtic(2) notitle' |
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/sh | |
if [ -z "$1" ] | |
then | |
echo "Usage: "$0" DBUSER DB TABLE COL NEWSIZE" | |
else | |
USER=$1 | |
DB=$2 | |
TABLE=$3 | |
COL=$4 | |
SIZE=$5 |
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
import os, sys | |
base = os.path.dirname(os.path.dirname(__file__)) | |
base_parent = os.path.dirname(base) | |
sys.path.append(base) | |
sys.path.append(base_parent) | |
os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % os.path.basename( os.path.dirname(__file__) ) |
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
##################################################### | |
# router/350_exim4-config_virtual_aliases | |
##################################################### | |
#--------------------------- | |
# This router is added so that we can use this server for multiple domains | |
# And also be able to define custom aliases for each of these domains... | |
# NOTE : this router is placed before the system_aliases router so that virtual domain | |
# routing takes precedence over system_aliases | |
#---------------------------- |
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
Normal, Funny, Unique, and Loving ways to end your letters, notes, e-mails, conversations, tweets, posts.... | |
I love lists..... | |
Normal: | |
Best/Warm wishes, | |
Confidently yours, | |
Kind regards, | |
Respectfully Yours, | |
With anticipation, | |
Hugs, |
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
Linux CUPS terminal printer quick cheatsheet | |
============================================= | |
** Adding a new printer without a PPD: | |
lpadmin -p printer_name -E -v socket://192.168.1.9:9100 | |
** Finding an existing PPD for your printer if required: | |
lpinfo --make-and-model 'LaserJet 3390' -m |
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
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Windows.Storage; | |
namespace MyCHILD |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
namespace RESTAPI | |
{ | |
/// <summary> | |
/// Encapsulates functionality to make it possible to make |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace LongListSelectorUtils | |
{ | |
/// <summary> | |
/// This class allows us to be able to create custom groups, with custom keys, | |
/// that can be easily consumed by jumplists and used to group items in longlist selector controls. | |
/// |
OlderNewer