Sharing how I setup my steam deck to run golang / php / nodejs / redis / mariadb|mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/binary" | |
"encoding/hex" | |
"encoding/json" | |
"fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Daison\Utils; | |
use Illuminate\Support\MessageBag; | |
use Illuminate\Contracts\Validation\Validator as ValidatorContract; | |
class CustomError implements ValidatorContract | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
use PhpCsFixer\FixerInterface; | |
$finder = Finder::create()->in([ | |
__DIR__.'/app', | |
__DIR__.'/Plus65', | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global push.default current | |
git config --global user.name "John Doe" | |
git config --global user.email "[email protected]" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Comms Supplier Clean | |
### Route and Controller Handling | |
**Route:** | |
```php | |
Route::get( | |
'{supplier}/{verb}', | |
'SupplierController@handle' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
$props = [ | |
'name' => 'phalconslayer/slayer', | |
'keywords' => [ | |
'skeleton', 'boilerplate', 'framework', 'phalcon', 'slayer', | |
'bootstrap', | |
], | |
'description' => 'Bootstrapped Phalcon Framework', |