Skip to content

Instantly share code, notes, and snippets.

🦑

Gareth Jones symm

🦑
Block or report user

Report or block symm

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
View gist:d8960160cdc031f9a8d42ab46d283047
https://www.crunchyroll.com/ace-attorney/episode-1-the-first-turnabout-702349
https://www.crunchyroll.com/ace-attorney/episode-2-turnabout-sisters-1st-trial-702351
https://www.crunchyroll.com/ace-attorney/episode-3-turnabout-sisters-2nd-trial-702353
https://www.crunchyroll.com/ace-attorney/episode-4-turnabout-sisters-last-trial-702355
https://www.crunchyroll.com/ace-attorney/episode-5-turnabout-samurai-1st-trial-702357
https://www.crunchyroll.com/ace-attorney/episode-6-turnabout-samurai-2nd-trial-702359
https://www.crunchyroll.com/ace-attorney/episode-7-turnabout-samurai-last-trial-702361
https://www.crunchyroll.com/ace-attorney/episode-8-turnabout-goodbyes-1st-trial-702363
https://www.crunchyroll.com/ace-attorney/episode-9-turnabout-goodbyes-2nd-trial-702365
https://www.crunchyroll.com/ace-attorney/episode-10-turnabout-goodbyes-3rd-trial-702367
View ChickenProvider.php
<?php declare(strict_types=1);
namespace Faker\Provider;
use Faker\Provider\Base as BaseProvider;
class ChickenProvider
{
private static $chickens = [
'pulë',
'oilaskoa',
@symm
symm / .gitignore
Last active Jun 29, 2017
Build Symfony project deployable artifact
View .gitignore
/app/config/parameters.yml
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
View matcher.php
<?php
function it_decodes_a_json_export_into_a_collection_of_bookmarks()
{
$result = $this->parse(__DIR__ . '/../pinboard_export.json');
$result->shouldHaveType(Collection::class);
$result->shouldHaveCount(3);
$result->shouldContainOnlyInstancesOf(Bookmark::class);
}
View docker.sh
#!/bin/bash
set -e
# Remove base os docker
apt-get -y remove docker docker-engine
apt-get -y install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
View swapfile.sh
fallocate -l 1G /swapfile
ls -lh /swapfile
chmod 600 /swapfile
ls -lh /swapfile
mkswap /swapfile
swapon /swapfile
free -h
echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab
sysctl vm.swappiness=10
View gist:5956f0bf7304ffe734eab7ee96fc2d08
apm install \
project-manager \
editorconfig \
file-icons \
highlight-line highlight-selected \
linter \
pigments \
tree-view-git-status \
last-cursor-position \
tab-foldername-index \
View gist:9e24e361cf7d20fe85c33ad61fa73a17
https://stackoverflow.com/questions/13194322/php-regex-to-check-date-is-in-yyyy-mm-dd-format
View gist:aebf3c84b27aeca93d4937a7ba97a699
5addf30ecb46c624fa97bf1e83303ce5d36fabb4525c08c966cbaf0a397fe4c33d8a4ad17fd0f4f509f547947779e1b2db32abc0471e785cacb3e2dde9b8c492 boot9.bin
c3f5044321f1ec5a33e09dd021e1117b1b663e37673222944a06b119ea70af92fc6de8547129582131fb9f8896edef7e9a8ef77295c627e0f1cb360b15b533b4 boot11.bin
View gist:8acf1d7066661f394213223157e640a6
/**
* @beforeScenario
*/
public function createSchema()
{
$metadata = $this->entityManager->getMetadataFactory()->getAllMetadata();
if (!empty($metadata)) {
$tool = new SchemaTool($this->entityManager);
$tool->dropSchema($metadata);
$tool->createSchema($metadata);
You can’t perform that action at this time.