Skip to content

Instantly share code, notes, and snippets.

phpinfo()
PHP Version => 7.1.25
System => Linux testrunner 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019 x86_64
Build Date => Sep 27 2019 05:15:51
Configure Command => './configure' '--build=x86_64-alpine-linux-musl' '--host=x86_64-alpine-linux-musl' '--prefix=/usr' '--program-suffix=7' '--libdir=/usr/lib/php7' '--datadir=/usr/share/php7' '--sysconfdir=/etc/php7' '--localstatedir=/var' '--with-layout=GNU' '--with-pic' '--with-pear=/usr/share/php7' '--with-config-file-path=/etc/php7' '--with-config-file-scan-dir=/etc/php7/conf.d' '--disable-short-tags' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-calendar=shared' '--enable-ctype=shared' '--with-curl=shared' '--enable-dba=shared' '--with-db4' '--with-dbmaker=shared' '--with-gdbm' '--enable-dom=shared' '--with-enchant=shared' '--enable-exif=shared' '--enable-fileinfo=shared' '--enable-ftp=shared' '--with-gd=shared' '--with-freetype-dir=/usr' '--disable-gd-jis-conv' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-
export PATH="/usr/local/bin:$PATH"
# Make ls use colors
export CLICOLOR=1
alias ls='ls -Fa'
# define colors
C_DEFAULT="\[\033[m\]"
C_WHITE="\[\033[1m\]"
C_BLACK="\[\033[30m\]"
C_RED="\[\033[31m\]"
C_GREEN="\[\033[32m\]"
def explore_bigport():
try:
# This is the path on the local IBI network that houses WF and PMF installers
path = "//rediron1/u1/bigport/rels_development/"
print
"\n...Attempting to explore bigport..."
# lists all directories in the path Z:/bigport/rels_development
versions = os.listdir(path)
# remove all possibilites that do not begin with 8 or 7 and are 3 or fewer characters AKA non-client versions
@Onebrownsound
Onebrownsound / gist:7a7e374d68e1d738e435
Last active August 29, 2015 14:11
Evaluate Wordlist with Markov Chain
import numpy
import string
letters='abcdefghijklmnopqrstuvwxyz'
matrixdict = {x: {y : 0 for y in letters} for x in letters}
letterdict={x:0 for x in letters}
words=open('enable1.txt').read().splitlines()
for word in words:
for i in range(len(word) - 1):
@Onebrownsound
Onebrownsound / gist:7f7fcdd689ff5c6efbe4
Last active August 29, 2015 14:10
Stick Algorithm
'''
stickdict={'stick1':((0,3),(4,5)),
'stick2':((2,3),(8,1)),
'stick3':((4,0),(5,1)),
'stick4':((1,3),(4.2,1)),
}
stickdict={'stick1':((1,6),(12,6)),
'stick2':((1,7),(1,15)),
@Onebrownsound
Onebrownsound / Spacecrawler
Last active August 29, 2015 14:10
SpaceCrawler
import math
import random
import pprint
from copy import copy,deepcopy
class Node:
def __init__(self, val, pos):
self.val = val
self.pos = pos