Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jckimble on github.
  • I am jckimble (https://keybase.io/jckimble) on keybase.
  • I have a public key whose fingerprint is FE7D FB8D CF95 C3C0 ED4F 7CB7 69CA E07E AFB1 BC4B

To claim this, I am signing this object:

@jckimble
jckimble / Dockerfile
Created January 14, 2017 07:57
nginx php7 docker file
FROM alpine:latest
COPY nginx.conf /etc/nginx/nginx.conf
COPY fpm-pool.conf /etc/php7/php-fpm.d/zzz_custom.conf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY bower.json composer.json gulpfile.js package.json /var/www/
ADD resources /var/www/resources
ADD templates /var/www/templates
@jckimble
jckimble / install.php
Created April 17, 2017 05:11
Web Composer Installer
<?php
/****************************************************
* Web Composer Installer
* Created By James Kimble <jckimble601@gmail.com>
* Downloads composer.phar, runs composer install,
* and cleans up after its self.
*
* LICENSE: Do What You Want
* I DO NOT TAKE ANY RESPONSIBILITY FOR ANY DAMAGE THIS
* PHP SCRIPT MIGHT DO OR IF IT KILLS YOUR CAT, FAMILY,
@jckimble
jckimble / imageFilter.php
Created July 7, 2017 07:14
Checking if image is same image
<?php
function getImageHash($filename){
$content=file_get_contents($filename);
if($content){
list($width,$height,$type,$attr)=getimagesize($filename);
$im=imagecreatefromstring($content);
$new=imagecreatetruecolor($width,$height);
imagecopy($new,$im,0,0,0,0,$width,$height,$width,$height);
imagedestroy($im);
ob_start();
@jckimble
jckimble / totpcrack.go
Last active August 30, 2018 06:08
Example of why totp is NOT a protection for mitm attacks
package main
import (
"flag"
"fmt"
"github.com/pquerna/otp"
"github.com/pquerna/otp/totp"
"os"
"strconv"
"strings"