Skip to content

Instantly share code, notes, and snippets.

View IamSwap's full-sized avatar
🚀
Building cool things! 😎

Swapnil Bhavsar IamSwap

🚀
Building cool things! 😎
View GitHub Profile
@IamSwap
IamSwap / README.md
Created October 20, 2023 07:22 — forked from irazasyed/README.md
Instructions on How to use Cloudflare Argo Tunnel to Share Laravel Valet Site on macOS and Helper Bash Script

How to use Cloudflare Argo Tunnel to Share Laravel Valet Site on macOS

Set up a tunnel locally

1. Download and install cloudflared

brew install cloudflare/cloudflare/cloudflared
@IamSwap
IamSwap / hyper.js
Created August 12, 2020 07:09
Hyper.js Terminal Configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@IamSwap
IamSwap / magento2-deployment-script.sh
Created April 25, 2020 16:12
Magento 2 deployment script
cd /magento2-root
git pull origin master
composer install
php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento cache:clean
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
@IamSwap
IamSwap / deployment-script.sh
Created January 9, 2019 08:33
Runcloud Laravel deployment script
git pull origin master
composer install --no-dev
php artisan migrate --force
@IamSwap
IamSwap / widget.php
Created September 7, 2018 04:08
WordPress Sample Widget
<?php
/**
* Widget Name: Company WidgetName Widget
* Description: A sample widget.
*/
class Company_WidgetName_Widget extends WP_Widget {
/**
* Register widget with WordPress.
*/
@IamSwap
IamSwap / _variables.scss
Created September 2, 2018 16:07
Extra Spacers & Sizes for Bootstrap 4
// Spacers for margin & padding
$spacer: 1rem;
$spacers: ();
$spacers: map-merge((
0: 0,
px: 1px,
1: ($spacer * .25),
2: ($spacer * .5),
3: ($spacer * .75),
4: $spacer,
@IamSwap
IamSwap / cloudSettings
Last active July 25, 2020 04:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-25T04:19:59.517Z","extensionVersion":"v3.4.3"}
@IamSwap
IamSwap / .php_cs
Created April 10, 2018 09:16
WordPress .php_cs for sublime text
<?php
/**
* Config for PHP-CS-Fixer ver2
*/
$rules = array(
'@PSR2' => false,
// addtional rules
@IamSwap
IamSwap / .php_cs
Last active August 30, 2018 14:22
PHP CS fixer Configuration for Laravel
<?php
/**
* Config for PHP-CS-Fixer ver2
*/
$rules = [
'@PSR2' => true,
// addtional rules
@IamSwap
IamSwap / magento2.gitingore
Created May 17, 2016 06:04
Gitignore file for Magento 2
/.buildpath
/.cache
/.metadata
/.project
/.settings
atlassian*
/nbproject
/sitemap
/.idea
/.gitattributes