Skip to content

Instantly share code, notes, and snippets.

View daison12006013's full-sized avatar
🤘
Hi there buddy!

Daison Cariño daison12006013

🤘
Hi there buddy!
View GitHub Profile
@daison12006013
daison12006013 / decryption.go
Last active May 17, 2024 08:50
Encrypt/Obfuscate payload Javascript to Golang
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/binary"
"encoding/hex"
"encoding/json"
"fmt"
@daison12006013
daison12006013 / Using Steam Deck as your device for web development.md
Last active May 2, 2024 10:33
Using Steam Deck as your device for web development
@daison12006013
daison12006013 / CustomError.php
Created December 5, 2018 07:45
Laravel custom error outside Form Request or Validator
<?php
namespace Daison\Utils;
use Illuminate\Support\MessageBag;
use Illuminate\Contracts\Validation\Validator as ValidatorContract;
class CustomError implements ValidatorContract
{
/**
@daison12006013
daison12006013 / .php_cs
Created February 8, 2018 08:33
PHP CS Fixer Config
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\FixerInterface;
$finder = Finder::create()->in([
__DIR__.'/app',
__DIR__.'/Plus65',
]);
@daison12006013
daison12006013 / after.sh
Created December 12, 2017 03:18
System Configurations to your Vagrant
git config --global push.default current
git config --global user.name "John Doe"
git config --global user.email "john.doe@gmail.com"
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.fh fetch
git config --global alias.pl pull
git config --global alias.ph pull
@daison12006013
daison12006013 / atom-terminal.sh
Created December 12, 2017 02:50
Using platformio-idea-terminal, auto opening your vagrant and ssh to your default project folder
#!/bin/bash
#
# On your project:
# - ignore "atom-terminal.sh" file
# - execute: `sudo chmod 775 atom-terminal.sh`
#
# Atom Editor:
# Go to your settings > install > search "platformio-ide-terminal"
# - Open that package and go to "Core"
# - Insert "./atom-terminal.sh"
@daison12006013
daison12006013 / Comms Plan
Last active February 26, 2016 03:48
Hello!
# Comms Supplier Clean
### Route and Controller Handling
**Route:**
```php
Route::get(
'{supplier}/{verb}',
'SupplierController@handle'
@daison12006013
daison12006013 / gist:9604880bee2b099496d5
Last active January 31, 2016 23:50
A perfect way to convert php array into json file, works well with composer.json, and you could apply a well commented array
#!/usr/bin/env php
<?php
$props = [
'name' => 'phalconslayer/slayer',
'keywords' => [
'skeleton', 'boilerplate', 'framework', 'phalcon', 'slayer',
'bootstrap',
],
'description' => 'Bootstrapped Phalcon Framework',