Skip to content

Instantly share code, notes, and snippets.

@natebrunette
natebrunette / supervisor.sh
Created May 11, 2019 01:44
Simple script to restart a command
#!/bin/bash
echo "Executing: $@"
until $("$@")
do
echo "Process crashed with exit code $?. Respawning..." >&2
sleep 1
done
@natebrunette
natebrunette / pseudo
Last active March 12, 2018 19:33
Frontload any sudo commands so you can walk away from your computer
#! /bin/bash
sudo true && "$@"
<?php
namespace App;
use Doctrine\Common\Collections\ArrayCollection;
use Tebru\Gson\Internal\TypeAdapter\ArrayTypeAdapter;
use Tebru\Gson\JsonReadable;
use Tebru\Gson\JsonToken;
use Tebru\Gson\JsonWritable;
use Tebru\Gson\TypeAdapter;
<?php
class MyClass
{
private $foo;
public function setFoo($foo)
{
$this->foo = $foo;
}
#!/usr/bin/env php
<?php
/**
* Composer Wrapper
*
* You may use this file as you would the standard composer command line tool.
* This script is made to wrap the composer script. It will download composer
* and place the executable phar file in the `bin/` folder of the project if
* it is not already available. When the executable phar is available this
* script will forward all commands to the composer executable.

Keybase proof

I hereby claim:

  • I am natebrunette on github.
  • I am natebrunette (https://keybase.io/natebrunette) on keybase.
  • I have a public key whose fingerprint is B98E BFF1 D6E6 84E5 08EB 9EEB E6FB B306 684F 25D0

To claim this, I am signing this object:

/*
Copyright 2012 Igor Vaynberg
Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
General Public License version 2 (the "GPL License"). You may choose either license to govern your
use of this software only upon the condition that you accept all of the terms of either the Apache
License or the GPL License.