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
' Very Basic Seasonal greeter for BGInfo | |
' Add a case for each month, and then a sub select for the day (if needed) | |
Select Case (DatePart("m", now)) | |
case 1 ' January | |
Select Case (DatePart("d", now)) | |
case 1, 2, 3, 4, 5, 6, 7, 8, 9 | |
Echo("Happy New Year!") | |
End Select |
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
' Assign Favorites Based on OU | |
' Written by Adam "Arcath" Laycock | |
' December 2011 | |
' Variables | |
Set WshNetwork = WScript.CreateObject("WScript.Network") | |
Set objShell=CreateObject("Wscript.Shell" ) 'Create the Shell Object | |
favUnc = "\\hpml350\School Folders\Pupil Favorites\" ' Set This to the UNC path for your favorits folder |
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
function FindProxyForURL(url, host){ | |
/* Lancashire Proxy */ | |
proxy1 = "PROXY proxy.company1.com:8080; DIRECT"; | |
/* Cumbria Proxy */ | |
proxy2 = "PROXY proxy.company2.com:8080; DIRECT"; | |
/* Set proxy to Direct as the default */ | |
proxy = "DIRECT"; | |
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
function FindProxyForURL(url, host){ | |
/* The IP Range in the form 10.X.X (miss off digit 4) */ | |
iprange = "10.0.0"; | |
/* The Subnet */ | |
subnet = "255.255.255.0"; | |
/* The Domain Name */ | |
localdomain = "school.local"; |
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
upcaser = Markabb::Callback.new(Proc.new { |s| | |
s.upcase | |
}) | |
Markabb.register_tag :upcase, Markabb::Tag.new('up', upcaser) | |
"[up]FooBAr[/up]".markabb # > FOOBAR |
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
dim shell, DQ, MSI_store, vbsinstall_folder, path_to_exe, options, chkfile | |
' Constants | |
DQ = chr(34) | |
Set FSys = CreateObject("Scripting.FileSystemObject") | |
vbsinstall_folder = "C:\vbs_install\" 'path to store keys in | |
if Not Fsys.FolderExists(vbsinstall_folder) Then | |
Fsys.CreateFolder(vbsinstall_folder) |
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
path = require 'path' | |
fs = require 'fs-plus' | |
temp = require 'temp' | |
describe 'Jekyll', -> | |
describe 'before Activation', -> | |
it 'should be in the packages list', -> | |
expect(atom.packages.loadedPackages["jekyll"]).toBeDefined() |
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
# Set the Location to my Powershell FOlders | |
set-location c:\Code\Powershell | |
# Fix/Set the console size | |
$Shell = $Host.UI.RawUI | |
$size = $Shell.WindowSize | |
$size.width=150 | |
$size.height=50 | |
$Shell.WindowSize = $size |
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
http_port 3128 | |
hierarchy_stoplist cgi-bin ? | |
cache_mem 1024 MB | |
cache_dir aufs /squid_cache/cache 81920 16 256 | |
maximum_object_size 5120 MB | |
cache_store_log /squid_cache/store.log | |
coredump_dir /var/spool/squid3 |
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
# | |
# Recommended minimum configuration: | |
# | |
# Example rule allowing access from your local networks. | |
# Adapt to list your (internal) IP networks from where browsing | |
# should be allowed | |
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network | |
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network | |
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network |