Skip to content

Instantly share code, notes, and snippets.

Graphics3D 800, 600
SetBuffer BackBuffer()
Global camera = CreateCamera()
Global cube = CreateCube()
Global light = CreateLight()
Global texture = CreateTexture(64, 64)
RotateEntity light, 90, 0, 0
<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );
header('X-UA-Compatible: IE=Edge');
// This will turn on the StarField corner icon.
$STN_tpl['StarField'] = false;
// You can cut'n'paste the codes here.
$STN_tpl['StarField_CNP'] = <<<CNP
<span id="siteseal"><script src="https://seal.starfieldtech.com/getSeal?sealID=iT8sV1o2aQOjr8mf0UigKGyrj239Vt6uYlnCAsabbmc3jv7veAzwcix6LXM" type="text/javascript"></script></span>
![XML encoding gone wild](http://i.imgur.com/XBujjUm.png)
This was caused by a product having a title with HTML in it, specifically the <title> tag,
here is the offending snippet:
```xml
<item>
<title>Edward 1</g:quantity>
<g:availability>in stock</g:availability>
<g:brand>Safari Limited</g:brand>
PHP Warning: Unknown: open_basedir restriction in effect. File(/home/<domain1>/httpdocs/abyssguard/abyssguard.php) is not within the allowed path(s): (/home/<domain2>/:/tmp/:/home/<domain1>/httpdocs/abyssguard/) in Unknown on line 0
@mythril
mythril / index.html
Created December 1, 2012 18:18
A CodePen by Anonymous.
<ul>
<a href=""><li>Body Treatments</li></a>
<a href=""><li>Make Up</li></a>
<a href=""><li>Skincare</li></a>
<a href=""><li>Hand & Feet Treats</li></a>
</ul>
user@user-battlestation ~/go/src/github.com/user/mersenne $ go env
warning: GOPATH set to GOROOT (/home/user/go/) has no effect
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
[sudo] password for luke:
Sorry, try again.
[sudo] password for luke:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
pwgen
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 21.7kB of archives.
@mythril
mythril / jenkins-php.md
Last active December 17, 2015 09:18
Setting up Jenkins for PHP / Git

Install basic required stack (on top of Debian GNU/Linux 7.0 (wheezy) netboot)

including: pear, ant, a JDK & JRE, git, sudo, php5 command line, curl

su
apt-get install php5-cli git sudo default-jre-headless php-pear ant \
	openjdk-6-jdk curl libapache2-mod-php5
usermod -a -G sudo <user>
exit
@mythril
mythril / gist:5587588
Created May 15, 2013 21:33
Build log
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/viper/workspace
Checkout:workspace / /var/lib/jenkins/jobs/viper/workspace - hudson.remoting.LocalChannel@4922c082
Using strategy: Default
Last Built Revision: Revision 1d0ee1d8ebf059b1e3a42ebeb49c7a7d135b7f0c (origin/master, origin/HEAD)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Seen 2 remote branches
<ruleset name="name-of-your-coding-standard">
<description>Description of your coding standard</description>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<!-- ... -->
</ruleset>