Skip to content

Instantly share code, notes, and snippets.

Avatar
🍺
Having Fun

Sem Schilder xvilo

🍺
Having Fun
View GitHub Profile
View keybase.md

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:

View keybase.md

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:

View typeChecking.php
<?php
class TypeCheckingObject {
/** @var string */
private $storage = '';
/**
* @return string
*/
public function getStorage() : string
@xvilo
xvilo / SempleXMLElement.php
Created Sep 11, 2017
SimpleXMLElement As Json Class
View SempleXMLElement.php
<?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
{
View emoji.php
<?php
class 💩💩💩💩
{
function 💩💩💩($😎, $🐯)
{
return $😎 + $🐯;
}
}
@xvilo
xvilo / fixup.txt
Created Apr 27, 2017 — forked from lucasdavila/fixup.txt
Fixing mac os yosemite issue "bash: fork: Resource temporarily unavailable"
View fixup.txt
# 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 Dec 30, 2016
Automatically manage a testing server with WordPress install script. WP-CLI is needed.
View manage.sh
#!/bin/bash
#############
# Functions #
#############
function exit_usage() {
echo "User manager 1.0"
echo "Usage: $0 COMMAND USERNAME"
echo ""
echo "COMMANDS:"
View GA real time users count
<?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)
View keybase.md

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: