Skip to content

Instantly share code, notes, and snippets.

View KABBOUCHI's full-sized avatar
🎯
Focusing

Georges KABBOUCHI KABBOUCHI

🎯
Focusing
View GitHub Profile
@KABBOUCHI
KABBOUCHI / dlblender
Created September 13, 2019 13:35 — forked from metal3d/dlblender
Download latest Blender builds
#!/bin/env python3
# -*- encoding: utf8 -*-
"""
Download latest build for Blender 2.7x and 2.8x
How to use:
- get that source code and name it "dlblender"
- change vars INSTALL_PATH and LINK_PATH is you want
- INSTALL_PATH is where will reside new and old version of blender.
I'm using hidden path "~/.blender"
@KABBOUCHI
KABBOUCHI / canDryRun.php
Last active August 20, 2020 16:45
Dry Run Laravel Form Requests
<?php
namespace App\Http\Requests;
trait canDryRun
{
/**
* Validate the class instance.
@KABBOUCHI
KABBOUCHI / AndroidKeystoreAuthenticator.cs
Created April 28, 2019 18:17 — forked from sttz/AndroidKeystoreAuthenticator.cs
Unity editor script that stores Android Keystore passwords in the macOS Keychain.
using System;
using System.IO;
using UnityEditor;
using UnityEditor.Build;
using UnityEngine;
#if UNITY_EDITOR_OSX
/// <summary>
/// Unity clears Android Keystore and Key Alias passwords when it exits,
@KABBOUCHI
KABBOUCHI / UploadedFileServiceProvider.php
Last active September 21, 2022 21:29
Laravel UploadedFile macro for image manipulation using Intervention Image
<?php
namespace App\Providers;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
use Intervention\Image\Facades\Image;
@KABBOUCHI
KABBOUCHI / server-setup.sh
Created October 8, 2018 19:02 — forked from mass6/server-setup.sh
App Server Setup Script
#
# REQUIRES:
# - server (the forge server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
# - recipe_id (recipe id to run at the end)
#
@KABBOUCHI
KABBOUCHI / QuaternionCompression.cs
Created September 4, 2018 15:07 — forked from StagPoint/QuaternionCompression.cs
C# - Use "smallest three" compression for transmitting Quaternion rotations in Unity's UNET networking, from 16 bytes to 7 bytes.
// Copyright (c) 2016 StagPoint Software
namespace StagPoint.Networking
{
using System;
using UnityEngine;
using UnityEngine.Networking;
/// <summary>
/// Provides some commonly-used functions for transferring compressed data over the network using
@KABBOUCHI
KABBOUCHI / BatchBuilderSettings.cs
Created September 1, 2018 15:02 — forked from msklywenn/BatchBuilderSettings.cs
Unity Batch Builder
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// Version 2, December 2004
//
// Copyright (C) 2004 Sam Hocevar <[email protected]>
//
// Everyone is permitted to copy and distribute verbatim or modified
// copies of this license document, and changing it is allowed as long
// as the name is changed.
//
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
<?php
namespace App\Http;
/**
* Description of VideoStream
*
* @author Rana
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069
*/
@KABBOUCHI
KABBOUCHI / NoVNC_Paste.js
Created April 3, 2018 21:45 — forked from byjg/NoVNC_Paste.js
How to Paste code to NoVNC.
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
window.sendString = function (str) {
f(str.split(""));
function f(t) {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/);