Skip to content

Instantly share code, notes, and snippets.

View nathan-isaac's full-sized avatar

Nathan Isaac nathan-isaac

View GitHub Profile
@nathan-isaac
nathan-isaac / sublime.json
Last active October 20, 2017 15:45
Preferences.sublime-settings
{
"color_scheme": "Packages/User/sublime-themes/Material-Theme-Custom.tmTheme",
"draw_white_space": "all",
"enable_tab_scrolling": false,
"font_face": "Roboto Mono",
"font_size": 13,
"ignored_packages":
[
"Vintage"
],
@nathan-isaac
nathan-isaac / ConEmu.xml
Last active June 12, 2018 19:37
ConEmu Settings
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2014-12-18 08:35:46" build="141216">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data="&quot;%ProgramFiles(x86)%\Git\bin\sh.exe&quot; --login -i"/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Git bash}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@nathan-isaac
nathan-isaac / Default (Windows).sublime-keymap
Last active February 9, 2016 20:57
Text editor user preferences.
[
{ "keys": ["alt+1"], "command": "toggle_side_bar" }
]
<?php
class MyClass {
private $firstField;
private $secondField;
public function __get($property) {
if (property_exists($this, $property)) {
return $this->$property;
}
}
@nathan-isaac
nathan-isaac / composer.bat
Created November 27, 2013 16:30
Composer Update
cd \ProgramData\Composer\bin
composer self-update
@nathan-isaac
nathan-isaac / config.php
Created October 24, 2013 23:40
Get full Site URL including "HTTP" or "HTTPS".
function siteURL()
{
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
$domainName = $_SERVER['HTTP_HOST'].'/';
return $protocol.$domainName;
}
<div class="page-wrap">
Content!
</div>
<footer class="site-footer">
I'm the Sticky Footer.
</footer>
@nathan-isaac
nathan-isaac / web.config
Created October 15, 2013 04:28
Ghost IIS 7.5 Config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="index.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true">
<match url="iisnode" />
@nathan-isaac
nathan-isaac / text.txt
Created October 8, 2013 15:35
SQL Injection
Filter Input
Excape Output
html,
body {
width: 100%;
height: 100%;
}
/* div */.body {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;