This file contains hidden or 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
Sub Super_Sub() | |
' | |
' Keyboard Shortcut: Ctrl+Shift+D | |
' | |
' If the characters are surrounded by "<" & ">" then they will be subscripted | |
' If the characters are surrounded by "{" & "}" then they will be superscripted | |
' | |
Dim NumSub | |
Dim NumSuper | |
Dim SubL |
This file contains hidden or 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
text/html; links -dump -width 78 %s | sed "s/^ //"; copiousoutput; needsterminal; nametemplate=%s.html |
This file contains hidden or 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
#!/bin/bash | |
filename=$1 | |
mail_address=$2 | |
mail_subject=$3 | |
scriptname=`basename "$0"` | |
if [ "$#" -ne 3 ]; then | |
echo "Illegal number of parameters" | |
echo "Usage: $scriptname <filename> <mail_address> <subject_of_mail>" | |
exit 1 |
This file contains hidden or 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
jschpp:~/exclude_from_backup/src/dosage (master) $ ./dosage CyanideAndHappiness Dilbert FonFlatter SandraAndWooGerman xkcd AhoiPolloi GaiaGerman LoadingArtist SMBC LookingForGroup Ruthe DieFruehreifen JohnnyWander PennyArcade SafelyEndangered Wumo Arcamax/ArcticCircle | |
CyanideAndHappiness> Retrieving 1 strip | |
CyanideAndHappiness> Saved Comics/CyanideAndHappiness/4431_sting.png (70.79KB). | |
Dilbert> Retrieving 1 strip | |
Dilbert> Saved Comics/Dilbert/2016-10-05.gif (127.35KB). | |
FonFlatter> Retrieving 1 strip | |
FonFlatter> Saved Comics/FonFlatter/fred_2016-10-05_s.png (25.81KB). | |
SandraAndWooGerman> Retrieving 1 strip | |
SandraAndWooGerman> Saved Comics/SandraAndWooGerman/2016-10-03-0826-die-goettliche-komoedie-seite-24.png (69.46KB). | |
xkcd> Retrieving 1 strip |
This file contains hidden or 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
"""count pdf pages""" | |
from __future__ import print_function | |
import sys | |
from getopt import GetoptError, getopt | |
from PyPDF2 import PdfFileReader | |
try: | |
from os import scandir | |
except ImportError: | |
from scandir import scandir |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
2018-03-09 11:33:37, Info CBS Trusted Installer is shutting down because: SHUTDOWN_REASON_AUTOSTOP | |
2018-03-09 11:33:37, Info CBS TiWorker signaled for shutdown, going to exit. | |
2018-03-09 11:33:37, Info CBS Ending the TiWorker main loop. | |
2018-03-09 11:33:37, Info CBS Ending the TrustedInstaller main loop. | |
2018-03-09 11:33:37, Info CBS Starting TiWorker finalization. | |
2018-03-09 11:33:37, Info CBS Starting TrustedInstaller finalization. | |
2018-03-09 11:33:37, Info CBS Ending TrustedInstaller finalization. | |
2018-03-09 11:33:37, Info CBS Ending TiWorker finalization. | |
2018-03-09 11:33:56, Info CBS TI: --- Initializing Trusted Installer --- | |
2018-03-09 11:33:56, Info CBS TI: Last boot time: 2018-03-07 14:02:10.495 |
This file contains hidden or 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
function Get-IdentedString { | |
<# | |
.SYNOPSIS | |
Returns $obj as indented string | |
.DESCRIPTION | |
Turns $obj to string and adds $indent * 4 spaces in front of it | |
.PARAMETER obj | |
Object to be converted to String |
This file contains hidden or 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
param ( | |
[switch]$CompareObjects, | |
$left, # if I specify [string[]]$left the Property ReadCount which is created by gc is lost -.-' | |
$right, | |
[switch]$DisplayWhitespace | |
) | |
if (!$CompareObjects) { | |
$left = Get-Content $left | |
$right = Get-Content $right | |
} |
This file contains hidden or 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
function ParseLine([string]$Line) { | |
$returnObject = @{ | |
Date = $null | |
Time = $null | |
Status = $null | |
} | |
$returnObject.Date = Get-Date $line.Split(',')[0] -Format "dd/MM/yyyy" | |
$returnObject.Time = Get-Date $line.Split(',')[0] -Format "hh:mm:ss" | |
$returnObject.Status = $line.Split(',')[1].TrimEnd('.') |
This file contains hidden or 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
<!DOCTYPE html> | |
<!-- saved from url=(0026)http://localhost/guestbook --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="robots" content="noindex,nofollow"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Crikey! There was an error...</title> | |
<style>body { | |
font: 12px "Helvetica Neue", helvetica, arial, sans-serif; |