Skip to content

Instantly share code, notes, and snippets.

Adam Laycock Arcath

Block or report user

Report or block Arcath

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View old-router.js
module.exports = React.createClass({
render: function(){
return React.createElement(
{history: browserHistory},
React.createElement(Route, {
path: window.location.pathname,
component: Login
React.createElement(Route, {
View osticket-api-proxy.php
$config = array(
'key'=> $_POST['apiKey']
$data = array(
'name' => $_POST['name'],
'email' => $_POST['email'],
'subject' => $_POST['subject'],
Arcath / squid.conf
Created Jul 15, 2015
Windows Apple Downloads Squid.conf
View squid.conf
# 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 # RFC1918 possible internal network
acl localnet src # RFC1918 possible internal network
acl localnet src # RFC1918 possible internal network
View squid.conf
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
View Microsoft.PowerShell_profile.ps1
# Set the Location to my Powershell FOlders
set-location c:\Code\Powershell
# Fix/Set the console size
$Shell = $Host.UI.RawUI
$size = $Shell.WindowSize
$Shell.WindowSize = $size
View gist:cb6d9a699abb6e59c3a4
path = require 'path'
fs = require 'fs-plus'
temp = require 'temp'
describe 'Jekyll', ->
describe 'before Activation', ->
it 'should be in the packages list', ->
Arcath / vbs_installer.vbs
Last active Aug 29, 2015
A script to silently deploy software to domain when no MSI is available (Assumes silent install exists on EXE)
View vbs_installer.vbs
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
Arcath / callback.rb
Created Jul 16, 2012
Markabb 1.0.0 Release post Code
View callback.rb
upcaser = { |s|
Markabb.register_tag :upcase,'up', upcaser)
"[up]FooBAr[/up]".markabb # > FOOBAR
Arcath / gist:2205071
Created Mar 26, 2012
Proxy.pac for a school
View gist:2205071
function FindProxyForURL(url, host){
/* The IP Range in the form 10.X.X (miss off digit 4) */
iprange = "10.0.0";
/* The Subnet */
subnet = "";
/* The Domain Name */
localdomain = "school.local";
Arcath / gist:2172289
Created Mar 23, 2012
A Proxy PAC File for the traveling technician
View gist:2172289
function FindProxyForURL(url, host){
/* Lancashire Proxy */
proxy1 = "PROXY; DIRECT";
/* Cumbria Proxy */
proxy2 = "PROXY; DIRECT";
/* Set proxy to Direct as the default */
proxy = "DIRECT";
You can’t perform that action at this time.