Skip to content

Instantly share code, notes, and snippets.

View xvilo's full-sized avatar
🍺
Having Fun

Sem Schilder xvilo

🍺
Having Fun
View GitHub Profile
<?php
class 💩💩💩💩
{
function 💩💩💩($😎, $🐯)
{
return $😎 + $🐯;
}
}

Keybase proof

I hereby claim:

  • I am xvilo on github.
  • I am semschilder (https://keybase.io/semschilder) on keybase.
  • I have a public key whose fingerprint is 8F87 C19E 2FD7 B0ED ECC8 216C 51BD 1942 24DE 67B3

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am xvilo on github.
  • I am semschilder (https://keybase.io/semschilder) on keybase.
  • I have a public key ASBHdoQmLk8Pt9oV6jAFMFPdqP6F8x413tdbJ2aREg12gwo

To claim this, I am signing this object:

<?php
class TypeCheckingObject {
/** @var string */
private $storage = '';
/**
* @return string
*/
public function getStorage() : string
@xvilo
xvilo / SempleXMLElement.php
Created September 11, 2017 16:35
SimpleXMLElement As Json Class
<?php
/**
* This class add's a simple function to a SimpleXMLElement Object.
* To JSON. This enables one to output a json string from a XML object.
*
* Class SempleXMLElement
*/
class SempleXMLElement extends SimpleXMLElement
{
@xvilo
xvilo / fixup.txt
Created April 27, 2017 17:20 — forked from lucasdavila/fixup.txt
Fixing mac os yosemite issue "bash: fork: Resource temporarily unavailable"
# see the current limits
$ sysctl -a | grep maxproc
# increase it
$ sudo sysctl -w kern.maxproc=xxxx
$ sudo sysctl -w kern.maxprocperuid=xxx
# run at startup
$ sudo vim /etc/sysctl.conf
@xvilo
xvilo / manage.sh
Last active December 30, 2016 09:32
Automatically manage a testing server with WordPress install script. WP-CLI is needed.
#!/bin/bash
#############
# Functions #
#############
function exit_usage() {
echo "User manager 1.0"
echo "Usage: $0 COMMAND USERNAME"
echo ""
echo "COMMANDS:"
<?php
/**
* 1. create project at https://console.developers.google.com/project
* 2. enable 'Analytics API' under 'APIs & auth' / APIs
* 3. create 'NEW CLIENT ID' (OAuth client) under 'APIs & auth' / Credentials
* i. select 'Service account'
* ii. save generated key file to 'key.p12'
* iii. remember CLIENT ID
* 4. under GA account add 'Read & Analyze' access to newly generated email (access to GA Account not Property nor View)

Keybase proof

I hereby claim:

  • I am xvilo on github.
  • I am semschilder (https://keybase.io/semschilder) on keybase.
  • I have a public key whose fingerprint is 2915 6270 3F36 A5C5 BD06 CB77 BFDD 5F83 1E38 2035

To claim this, I am signing this object: