Skip to content

Instantly share code, notes, and snippets.

View pvledoux's full-sized avatar

Pv Ledoux pvledoux

View GitHub Profile
@DimaKoz
DimaKoz / go-executable-build.sh
Last active October 7, 2024 15:06
The Script to Automate Cross-Compilation for Golang(OSX)
#Before we can use the script, we have to make it executable with the chmod command:
#chmod +x ./go-executable-build.sh
#then we can use it ./go-executable-build.sh yourpackage
#!/usr/bin/env bash
package=$1
if [[ -z "$package" ]]; then
echo "usage: $0 <package-name>"
exit 1
fi
@steven2358
steven2358 / ffmpeg.md
Last active December 11, 2025 18:19
FFmpeg cheat sheet
@pdanford
pdanford / README.md
Last active August 11, 2025 13:52
Launching iTerm2 from macOS Finder

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020


@wells
wells / AppServiceProvider.php
Created April 6, 2016 17:05
API Versioning in Laravel AppServiceProvider
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
@Adagal
Adagal / CheckRole.php
Last active September 11, 2017 17:03 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple API authorization - Protect routes by an account / role type
<?php namespace App\Http\Middleware;
// First copy this file into your middleware directoy
use Closure;
class CheckRole{
/**
* Handle an incoming request.
@RuGa
RuGa / massInsertOrUpdate.php
Last active December 11, 2024 23:14
Mass (bulk) insert or update on duplicate for Laravel 4/5
/**
* Mass (bulk) insert or update on duplicate for Laravel 4/5
*
* insertOrUpdate([
* ['id'=>1,'value'=>10],
* ['id'=>2,'value'=>60]
* ]);
*
*
* @param array $rows
@imjasonh
imjasonh / markdown.css
Last active September 3, 2025 22:12
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@goranprijic
goranprijic / BaseModel.php
Created December 17, 2014 10:12
Check if table is already joined in Laravel Query Builder
<?php
class BaseModel extends Eloquent {
public static function isJoined($query, $table)
{
$joins = $query->getQuery()->joins;
if($joins == null) {
return false;
}
@brandonkelly
brandonkelly / templating.md
Last active November 14, 2025 22:07
Templating in EE vs. Craft
@ProLoser
ProLoser / Recruiting.md
Last active April 4, 2017 19:14
Answers to common recruiting questions

Your Questions:

  • Updated Resume?
    PDF Resume
  • What is your availability?
    My Availability Calendar (use my email at the top for invites)
    I prefer scheduling meetings after 10am.
    Please try to avoid unsolicited / unscheduled phone calls.
  • Are you looking for a new job?
    Only in the Video Game industry.
  • What positions are you most interested in?