Skip to content

Instantly share code, notes, and snippets.

View s-e's full-sized avatar

Sam Evaskitas s-e

View GitHub Profile
@michellesanver
michellesanver / socials.md
Last active November 19, 2015 16:28
Conference socials in bars: How culture doesn't match comfort

I was hesitant as to whether or not to publish this, but in an act to create awareness in a community where some people, including me, are left uncomfortable and no one notices, I decided to go ahead. Feel free to share your experiences too, to further spread awareness in our community, because awareness is the first step.

I noticed that I started being more and more reserved the more events I went to rather than the other way around. This worried me and I was up until late hours thinking, why is that?

What happens at the events may be part of that, so here I'm sharing to create awareness. Bear in mind that this is only a handful of things that happened to me at conference socials, to give you an idea as to why I'm nowadays inclined to only hangout with the people I know, or skip the conference socials all together.

When you notice that behaviour from me remember that: It's not you, it's me, feel free to say hi but please understand why I may be a bit shy at first.

Disclaimer: I didn’t repor

@JesseObrien
JesseObrien / gist:7418983
Last active January 31, 2024 06:24
Bind parameters into the SQL query for Laravel ORM
<?php
class MyModel extends Eloquent {
public function getSql()
{
$builder = $this->getBuilder();
$sql = $builder->toSql();
foreach($builder->getBindings() as $binding)
{
@fideloper
fideloper / install.sh
Last active October 30, 2023 20:03
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
<?php
// turing machine
// binary increment algorithm based on Tom Stuart's "Understanding Computation"
$states = [1, 2, 3];
$accept_states = [3];
// quintuple
// state, read condition, write value, move direction, new state
@kapv89
kapv89 / api.dev
Created September 29, 2013 15:18
nginx api conf
server {
server_name api.foo.dev;
listen 80;
access_log /var/log/nginx/api.foo.dev.access.log;
error_log /var/log/nginx/api.foo.dev.error.log;
root /home/user/Projects/foo/server/api/public;
@JesseObrien
JesseObrien / name.conf
Last active December 19, 2015 06:18
A Good Nginx Config
server{
listen 80;
# Uncomment for SSL
#listen 443;
server_name example.com www.example.com;
# Uncomment for SSL
#ssl on;
#ssl_certificate /etc/ssl/mycert.crt;
#ssl_certificate_key /etc/ssl/mycert.key;
@olore
olore / alls_you_gotta_do
Last active December 18, 2015 16:29
AngularJS 1.1.x + Cordova
# This is how I got AngularJS 1.1.x and Cordova working together
#
sudo npm install -g grunt cordova
cordova create angular-app
cd angular-app
cordova platform add android # create android files
cordova ripple android # see the hello world phonegap application
@redchair123
redchair123 / find_unlicensed_repos.sh
Last active December 16, 2015 11:19
Simple shell script to find unlicensed repos on github
#!/bin/bash
# Copyright (c) 2013 Niggler
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTW
@designermonkey
designermonkey / next_proposal.md
Last active December 16, 2015 04:58
Draft proposal for the Symphony Next project.
  • Draft Number: 1
  • Date: 2013-04-14
  • Author: John Porter @designermonkey

Symphony Next

This is all still a little new to me, so forgive me if this sounds naive, or you all have already thought about this and it's obvious, but I've been thinking about how we actually build Next. (I like this as a project codename).

Proposing the Application

@barryvdh
barryvdh / laravel4_codeintel_helper.php
Last active June 8, 2020 06:46
Laravel 4 IDE Helper; CodeIntel version, generated using https://github.com/barryvdh/laravel-ide-helper (With the sublime option)
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
// This is now merged with: https://gist.github.com/barryvdh/5227822
// The same format is used for phpStorm, netBeans and Sublime Text Codeintel!