Skip to content

Instantly share code, notes, and snippets.

View k3ithos's full-sized avatar
🏠
Working from home

Keith k3ithos

🏠
Working from home
View GitHub Profile
@k3ithos
k3ithos / StringUtils.php
Created February 3, 2018 01:47 — forked from Muqsit/StringUtils.php
minet str center
<?php
/**
* Source from:
* https://github.com/NiclasOlofsson/MiNET/blob/master/src/MiNET/MiNET/Utils/TextUtils.cs
*/
namespace cosmiccore\miscs;
use pocketmine\utils\TextFormat as TF;
class StringUtils {
@k3ithos
k3ithos / keybase.md
Created November 13, 2017 11:18
Verifying this is me on keybase.io.

Keybase proof

I hereby claim:

  • I am k3ithos on github.
  • I am k3ithos (https://keybase.io/k3ithos) on keybase.
  • I have a public key whose fingerprint is 1538 D3BC 9059 5D36 3C83 D6BE 23E3 0074 88F5 CCF6

To claim this, I am signing this object:

#!/usr/bin/env python
import re
import fileinput
def this_line_is_useless(line):
useless_es = [
'BEGIN TRANSACTION',
'COMMIT',
'sqlite_sequence',
@k3ithos
k3ithos / Travis Build for Plugins
Created June 10, 2016 06:40
A Travis build script for plugins that builds them, then uploads them to a GitHub Pages site.
language: php
php:
- 7.0
branches:
only:
# Set the branches you want built here, as shown below in "master"
- master
before_script:
- pecl install channel://pecl.php.net/pthreads-3.1.6
@k3ithos
k3ithos / .travis.yml
Last active March 6, 2021 03:57
A sample travis script to build PocketMine(and its forks) and upload it to a GitHub repository to be accessible by GitHub Pages.
# PROJECT SPECIFICATIONS
language: php
php:
- 7.0
branches:
except:
- "/^*-v[0-9]/"
# WORKSPACE CONFIGURATION
before_script:
@k3ithos
k3ithos / auto-deploy.md
Created March 29, 2016 21:18 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.