Skip to content

Instantly share code, notes, and snippets.

module.exports = React.createClass({
render: function(){
return React.createElement(
Router,
{history: browserHistory},
React.createElement(Route, {
path: window.location.pathname,
component: Login
}),
React.createElement(Route, {
<?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 July 15, 2015 09:55
Windows Apple Downloads 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
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
@Arcath
Arcath / Microsoft.PowerShell_profile.ps1
Last active August 29, 2015 14:16
My Powershell Profile
# 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
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 August 29, 2015 13:56
A script to silently deploy software to domain when no MSI is available (Assumes silent install exists on EXE)
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 July 16, 2012 08:48
Markabb 1.0.0 Release post Code
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 March 26, 2012 13:33
Proxy.pac for a school
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 March 23, 2012 16:12
A Proxy PAC File for the traveling technician
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";