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
module.exports = React.createClass({ | |
render: function(){ | |
return React.createElement( | |
Router, | |
{history: browserHistory}, | |
React.createElement(Route, { | |
path: window.location.pathname, | |
component: Login | |
}), | |
React.createElement(Route, { |
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
<?php | |
$config = array( | |
'url'=>'https:/yoursite.com/api/tickets.json', | |
'key'=> $_POST['apiKey'] | |
); | |
$data = array( | |
'name' => $_POST['name'], | |
'email' => $_POST['email'], | |
'subject' => $_POST['subject'], |
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
# | |
# 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 |
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
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 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
# 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 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
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 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
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 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
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 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 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 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 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"; | |
NewerOlder