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 / 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 / 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 / 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 / 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 / Basic Vue Router Example.md
Last active February 24, 2020 20:36
Basic Vue Router Example
@IamSwap
IamSwap / php.ini
Created January 26, 2016 09:22
PHP Configurations for Magento 2
## Maximum Execution Time.
max_execution_time = 18000
## Maximum Input Time.
max_input_time = 6000
## Increase Memory Limit (Set more that 768M).
memory_limit = 1024M
## Increase Maximum size of post data.
@IamSwap
IamSwap / mage.dev.conf
Created January 26, 2016 09:24
Apache Virtual Host Configuration for Magento 2
<VirtualHost *:80>
DocumentRoot /var/www/magento2
ServerName mage.dev
ServerAlias mage.dev
<Directory /var/www/magento2>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
@IamSwap
IamSwap / mage.dev.conf
Created January 26, 2016 09:00
Nginx Virtual Host Configuration for Magento 2
upstream fastcgi_backend {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
## Ex. yourdomain.com
server_name mage.dev;
## Define project root
set $MAGE_ROOT /var/www/magento2;
@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.
*/