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(
Router,
{history: browserHistory},
React.createElement(Route, {
path: window.location.pathname,
component: Login
}),
React.createElement(Route, {
View osticket-api-proxy.php
<?php
$config = array(
'url'=>'https:/yoursite.com/api/tickets.json',
'key'=> $_POST['apiKey']
);
$data = array(
'name' => $_POST['name'],
'email' => $_POST['email'],
'subject' => $_POST['subject'],
@Arcath
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 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
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
$size.width=150
$size.height=50
$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', ->
expect(atom.packages.loadedPackages["jekyll"]).toBeDefined()
@Arcath
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
Fsys.CreateFolder(vbsinstall_folder)
@Arcath
Arcath / callback.rb
Created Jul 16, 2012
Markabb 1.0.0 Release post Code
View callback.rb
upcaser = Markabb::Callback.new(Proc.new { |s|
s.upcase
})
Markabb.register_tag :upcase, Markabb::Tag.new('up', upcaser)
"[up]FooBAr[/up]".markabb # > FOOBAR
@Arcath
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 = "255.255.255.0";
/* The Domain Name */
localdomain = "school.local";
@Arcath
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 proxy.company1.com:8080; DIRECT";
/* Cumbria Proxy */
proxy2 = "PROXY proxy.company2.com:8080; DIRECT";
/* Set proxy to Direct as the default */
proxy = "DIRECT";
You can’t perform that action at this time.