Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Mathew Davies ThePixelDeveloper

🎯
Focusing
Block or report user

Report or block ThePixelDeveloper

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
@ThePixelDeveloper
ThePixelDeveloper / .zshrc
Created Sep 14, 2015
Antigen configuration
View .zshrc
source ~/antigen/antigen.zsh
# Load colours
autoload -U colors && colors
# Parse prompt string
setopt promptsubst
antigen use oh-my-zsh
antigen bundle git
View crazy-reddit-dating-advice
I asked this girl on a date, I got denied, and then i called her and left a message saying she was a cunt, a robot, and that she had acadamia. I waited about 3 months and then i sent a bunch of emails and she didn't resond until about two thirds of the way through them. Then she didn't reply to the rest of them so I went to her house to talk to her in person, and I think she called a detective and turned in the emails to the school and then I got kicked out, only two quarters away for graduating. here is what I sent her before going to dorm and simply standing on the outside looking in the window for about half an our before being confronted by her friend to leave, which i did.
hi mel, I didn't ,mean any of the mean things i said, and I don't want you to think that I am trying to make you feel bad about not wanting to go on that date because It's just a date, It really doesn't make a difference if it's not what you want to do then we don't have to do it. It's not like it's really anything special because we'
@ThePixelDeveloper
ThePixelDeveloper / selenium.bash
Created Jun 11, 2013
init.d file for selenium
View selenium.bash
#!/bin/bash
### BEGIN INIT INFO
# Provides: selenium
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start selenium at boot time
# Description: Enable service provided by selenium.
### END INIT INFO
View init.pp
file { 'create sasl_passwd':
ensure => present,
owner => root,
group => root,
path => '/etc/postfix/sasl_passwd',
source => 'puppet:///modules/postfix/sasl_passwd',
require => Package['postfix'],
} ->
exec { 'postmap hash:/etc/postfix/sasl_passwd':
@ThePixelDeveloper
ThePixelDeveloper / ni.bash
Created Jan 15, 2013
No internet command
View ni.bash
#!/bin/bash
COMMAND="$1"
shift
for arg; do
COMMAND="$COMMAND \"$arg\""
done
sg no-internet "$COMMAND"
@ThePixelDeveloper
ThePixelDeveloper / UsersCommand.php
Created Dec 9, 2012
Generating 15,000 fake users for local development
View UsersCommand.php
<?php
namespace Nolimits\Dummy\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
View PKGBUILD.txt
# Maintainer: grimsock <lord.grimsock at gmail dot com>
pkgname=chromedriver
pkgver=18.0.995.0
pkgrel=1
pkgdesc="ChromeDriver is a standalone server which implements WebDriver's wire protocol"
arch=('i686' 'x86_64')
url="http://code.google.com/p/selenium/wiki/ChromeDriver"
license=('Apache')
depends=('chromium>=12.0.712.0' 'libpng12')
View gist:1378149
arg: 5.3.0
Source directory does not exist; trying to extract
php-5.3.0
php-5.3.0/ext
php-5.3.0/ext/gd
php-5.3.0/ext/gd/gd.c
php-5.3.0/ext/gd/gd_ctx.c
php-5.3.0/ext/gd/libgd
php-5.3.0/ext/gd/libgd/gd.c
php-5.3.0/ext/gd/libgd/gd.h
View test_bootstrap.php
<?php
/**
* The directory in which your application specific resources are located.
* The application directory must contain the bootstrap.php file.
*
* @see http://kohanaframework.org/guide/about.install#application
*/
$application = '';
/**
View phpunit.xml
<phpunit colors="true" bootstrap="../../application/test_bootstrap.php">
<testsuites>
<testsuite name="Exchange">
<directory suffix=".php">tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./classes/policy</directory>
</whitelist>
You can’t perform that action at this time.