Skip to content

Instantly share code, notes, and snippets.


Kyle Florence kflorence

  • Austin, Texas
View GitHub Profile
kflorence / ircd.php
Last active Sep 1, 2022
An IRC daemon written in PHP
View ircd.php
#Phircd v 0.1.0 - written by siron.
/* reads the config file and defines commands
$cline = file("ircd.conf") or die("cannot find ircd.conf!");
$cnum_lines = count($cline);
$conf = 0;
kflorence /
Last active Feb 16, 2022
Invokes an AWS Lambda function and displays the logs for the invocation
#!/usr/bin/env bash
set -e -o pipefail
FILENAME=$(basename "$FILENAME")
function usage {
echo "Invokes an AWS Lambda function and displays the logs for the invocation."
echo "usage: $FILENAME --function-name [--help] [--payload] [--wait] [<STDIN>]"
echo " --function-name the Lambda function name or ARN."
kflorence /
Last active Jan 19, 2022
Creates a markdown table of contents from a file tree (omitting the directory itself, "" files and "images" folders and their contents)
#!/usr/bin/env bash
# This script generates markdown from the output of the `tree` command.
# See:
# See:
set -e
# Tree is configured with:
# - `-f`: use full paths in output (relative to directory given, in this case '.').
# - `--noreport`: exclude the directories and files report as the last line of output.

Keybase proof

I hereby claim:

  • I am kflorence on github.
  • I am kflo ( on keybase.
  • I have a public key whose fingerprint is 79E4 56F4 4594 3E67 C69A AFB7 A371 9CEE B95E D236

To claim this, I am signing this object:

kflorence / cart-mysql.sql
Last active Oct 26, 2017
sample mysql interview questions
View cart-mysql.sql
drop table if exists customer;
create table customer(
id int auto_increment primary key,
first_name varchar(96) not null,
last_name varchar(96) not null,
address_id int not null
insert into customer (first_name, last_name, address_id) values ('john', 'doe', 1);
insert into customer (first_name, last_name, address_id) values ('jane', 'doe', 2);
kflorence / Conversions.scala
Created Dec 30, 2015
spring conversion helpers for scala
View Conversions.scala
package com.solarmosaic.core.service.converter
import javax.inject.Inject
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.core.convert.{TypeDescriptor, ConversionService}
import scala.reflect._
kflorence / .bash_profile
Created Apr 8, 2015
.bash_profile Mac OS X
View .bash_profile
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
# Nicer looking prompt with git branch in it
export PS1="\[\033[36m\]\u\[\033[m\]:\[\033[33;1m\]\w\[\033[m\]\[\033[35;1m\]\$(parse_git_branch)\[\033[m\]\$ "
# ls colors
export CLICOLOR=1
kflorence / 1password
Created Feb 9, 2015
Serve 1Password Anywhere from Dropbox folder
View 1password
# Serve 1Password anywhere from the Dropbox folder
server {
listen 80;
server_name 1password;
root /home/kflorence/Dropbox/1Password.agilekeychain;
location / {
index 1Password.html;




Use above instructions to install the Spotify Linux preview.


sudo apt-get install git