Skip to content

Instantly share code, notes, and snippets.

💻
Learning me some Golang

Colin O'Dell colinodell

💻
Learning me some Golang
Block or report user

Report or block colinodell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kvnxiao
kvnxiao / awesome-go-sorted-by-stars-2019-04-30.md
Last active Oct 17, 2019
awesome-go-sorted-by-stars-2019-04-30.md
View awesome-go-sorted-by-stars-2019-04-30.md

Awesome Go

Build Status Awesome Slack Widget Netlify Status

patreon avelino financial support to Awesome Go

A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.

Contributing

@florentdestremau
florentdestremau / NewPasswordType.php
Last active Sep 12, 2019
A simple User authentication setup to copy & paste into your Symfony 3.4 install
View NewPasswordType.php
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
@pavlov99
pavlov99 / ansible-galaxy-find-role-id.sh
Created Mar 27, 2017
Find your role's id in ansible-galaxy
View ansible-galaxy-find-role-id.sh
$ ansible-galaxy info YourUser.RoleName | grep -E 'id: [0-9]' | awk {'print $2'}
@gwillem
gwillem / magento-nginx.conf
Last active Oct 7, 2019
Battle-tested Nginx configuration for Magento (source: www.hypernode.com)
View magento-nginx.conf
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com
# See https://www.byte.nl/blog/magento-cacheleak-issue
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!!
user app;
worker_processes 4;
pid /var/run/nginx.pid;
events {
@kamermans
kamermans / configure_docker0.sh
Last active Oct 15, 2019
Change the IP subnet of Docker's docker0 interface
View configure_docker0.sh
#!/bin/sh -e
#
# NOTE: Since Docker 1.10 (February 4, 2016), it has been possible to configure the
# Docker daemon using a JSON config file. On Linux, this file is normally located at
# /etc/docker/daemon.json. You should use this JSON config method if you are running
# a version of Docker that is at least 1.10!
# Here is an example configuration that sets the docker0 bridge IP to 192.168.254.1/24:
# {
# "bip": "192.168.254.1/24"
# }
@vimishor
vimishor / pre-commit
Created Apr 14, 2015
Prevents debug traces and sensitive data to be commited.
View pre-commit
#!/bin/sh
#
# Prevents debug traces and sensitive data to be commited.
#
# What to search for
FUNCTIONS='var_dump\(|phpinfo\(|print_r\('
# Prevent the commit if something is found.
# default: true
View README.md

git fix

Combines python-inquirer and git-amend-old to make git fix.

This gives you the possibility to amend a specific commit very easily.

Thanks to @magmax and @colinodell

https://github.com/magmax/python-inquirer

@jmikola
jmikola / transcript.txt
Created Oct 10, 2014
Symfony Live NYC ReactPHP chat server
View transcript.txt
$ telnet jmikola.net 8888
Trying 97.107.131.54...
Connected to jmikola.net.
Escape character is '^]'.
hello
131.107.200.34: hi
131.107.200.34: hello
69.164.215.64: YOLO
131.107.200.34: hello
131.107.200.34: Hello Jeremy
@laracasts
laracasts / Gulpfile.js
Created Aug 20, 2014
PHPSpec auto-testing Gulpfile
View Gulpfile.js
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var run = require('gulp-run');
var notify = require('gulp-notify');
gulp.task('test', function() {
gulp.src('spec/**/*.php')
.pipe(run('clear'))
.pipe(phpspec('', { notify: true }))
.on('error', notify.onError({
@ianunruh
ianunruh / install-redis.sh
Last active Jul 13, 2018
Install single instance of Redis on Ubuntu 14.04
View install-redis.sh
#!/bin/bash
if [ "$#" -ne "2" ]; then
echo "Usage: ./install-redis-instance.sh NAME PORT"
exit 1
fi
if [ ! -x /usr/local/bin/redis-server ]; then
apt-get install -y build-essential
curl -O -L http://download.redis.io/releases/redis-2.8.9.tar.gz
You can’t perform that action at this time.