Skip to content

Instantly share code, notes, and snippets.

View nissicreative's full-sized avatar

Mike Folsom nissicreative

View GitHub Profile
@nissicreative
nissicreative / dreamhost-git.md
Last active August 16, 2023 15:16
Deploy to DreamHost using Git

DreamHost Git Deployment

On Local Server

Enable password-less ssh access:

cat ~/.ssh/id_rsa.pub | ssh username@server "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
# shortcut: copyrsa
@nissicreative
nissicreative / php-cs-fixer.php
Last active April 28, 2023 00:41
~/.php-cs-fixer.php
<?php
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@PHP74Migration' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@nissicreative
nissicreative / .prettierrc.json
Last active April 28, 2023 00:35
My prettierrc settings
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
@nissicreative
nissicreative / aliases.zsh
Last active March 30, 2023 03:20
~/.oh-my-zsh/custom/aliases.zsh
####################
# ALIASES
####################
alias cpwd="pwd | tr -d '\n' | pbcopy && echo 'Current working directory copied to clipboard.'"
alias flushdns="sudo killall -HUP mDNSResponder"
alias dskill="find . -name '*.DS_Store' -type f -delete"
alias dockspacer="defaults write com.apple.dock persistent-apps -array-add '{tile-type=\"spacer-tile\"}' && killall Dock"
@nissicreative
nissicreative / CountriesTableSeeder.php
Created March 6, 2017 21:39
Laravel CountriesTableSeeder
<?php
use Illuminate\Database\Seeder;
class CountriesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
@nissicreative
nissicreative / husqvarna.php
Created October 28, 2021 16:11
Husqvarna Error Codes
<?php
return [
'error_codes' => [
0 => 'Unexpected error',
1 => 'Outside working area',
2 => 'No loop signal',
3 => 'Wrong loop signal',
4 => 'Loop sensor problem, front',
5 => 'Loop sensor problem, rear',
@nissicreative
nissicreative / .php_cs.php
Last active September 23, 2021 22:06
My PHP CS Fixer Config (Deprecated - See .php-cs-fixer.php)
<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR12' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => [
'syntax' => 'short',
],
@nissicreative
nissicreative / .php-cs-fixer.php
Created September 23, 2021 22:02
Config for PHP CS Fixer
<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR12' => true,
'@PHP74Migration' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => [
'syntax' => 'short',
@nissicreative
nissicreative / TestCase.php
Last active May 20, 2021 02:18
Laravel 5.7 Base Test Case
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;