Skip to content

Instantly share code, notes, and snippets.

@jayrcodes
jayrcodes / MinIoUploadCommand.php
Created September 7, 2025 09:31
simple MinIO docker and quick command example
<?php
namespace App\Console\Commands\Examples;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
/*
# Example env variables
Here's a way to get around DEP that doesn't require blocking network hosts

## these commands MUST be from Terminal in Recovery mode only (as root of course)
## this assumes the boot drive is named "Macintosh HD" and is a newer OS that has a Data volume
## you may need to open Disk Utility to mount the Data volume then open Terminal

#clear the nvram if there is any saved WiFi info there
nvram -c

How to import chrome extension

Step 1. Unzip the file

The zip file

Step 2. Open Chrome browser, then go to chrome://extensions

The zip file

Flutter Cheatsheet

  • Start App

Open Project in VsCode Debug > Start Debugging

React Native Flutter
width: Dimensions.get('window).width width: double.Infinity

React Native Scaffold Guide

Install react native cli

npm install -g react-native-cli

Create new application

Add to .bashrc

alias mcr="php artisan make:model -mcr"
alias a="php artisan"
alias m="php artisan migrate;"
alias ms="php artisan migrate --database=sqlite"
alias mr="php artisan migrate:rollback"
alias s="php artisan db:seed"
alias t="./vendor/bin/phpunit"
{
"window.zoomLevel": 1,
"explorer.confirmDelete": false,
"[javascriptreact]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.autoIndent": true,
},
"[vue]": {
"editor.tabSize": 2,
@jayrcodes
jayrcodes / Summary.md
Created February 3, 2017 04:34 — forked from identor/Summary.md
Deployment Test with simple auto deployment server update by git push.

Deployment Summary

Deployment summary, all commands are tested in debian 8.1 x64. The new user to be created will be deploy under the host yourhost-here.

Create new user for deployment

Access the root user's shell. Note that the adduser command will prompt for a password, enter a new password and remember it.

apt-get install sudo -y
adduser deploy
gpasswd -a deploy sudo

post-receive

#!/bin/sh
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/opt/node-v4.5.0-linux-x64/bin
mkdir -p $HOME/opt/sc-nov2016
git --work-tree=$HOME/opt/sc-nov2016 --git-dir=$HOME/sc-nov2016.git checkout -f
npm i --prefix $HOME/opt/sc-nov2016 --production
npm --prefix $HOME/opt/sc-nov2016 run-script build
pm2 stop sc-nov2016

Create Ubuntu .desktop file

Execute the following commands

 cd ~/.local/share/applications
 touch robomongo.desktop
 chmod +x robomongo.desktop