Skip to content

Instantly share code, notes, and snippets.

View ahmadshobirin's full-sized avatar
🏠
Working from home

Shob ahmadshobirin

🏠
Working from home
View GitHub Profile
@amestsantim
amestsantim / Deploying a Laravel app on Windows using IIS.md
Last active March 29, 2026 11:41
We try to describe the steps required to deploy a Laravel application on a Windows machine using IIS

Deploying a Laravel app on Windows using IIS

Install IIS

  1. Open Server Manager: Start the Server Manager from the Start menu or taskbar.
  2. Add Roles and Features: Click on "Manage" in the top right corner of the Server Manager, then select "Add Roles and Features".
  3. Role-based or Feature-based Installation: Choose "Role-based or feature-based installation" and click "Next".
  4. Select the Server: Select the server on which you want to install IIS and click "Next".
  5. Select Server Roles: In the roles list, check the box next to "Web Server (IIS)". This action will prompt you to add features that are required for Web Server (IIS); accept these by clicking "Add Features".
  6. Features: No additional features are required at this point, so you can click "Next".
@TheCedarPrince
TheCedarPrince / .zshrc
Created October 26, 2020 16:10
My zsh Configuration File
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
clear && neofetch
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
@ahmadshobirin
ahmadshobirin / One Command LINE Git add, commit, push.md
Last active November 17, 2025 16:10
One Command LINE Git add, commit, push

TYPE IN TERMINAL


git config --global alias.lazy '!f() { git add -A && git commit -m "$@" && git push; }; f'

REFRESH U TERMINAL

and use this command for add, and commit

version: '3.8'
services:
rabbitmq:
image: rabbitmq:3-management
hostname: my-rabbit
volumes:
- ./rabbitmq/etc/definitions.json:/etc/rabbitmq/definitions.json
- ./rabbitmq/etc/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./rabbitmq/data:/var/lib/rabbitmq/mnesia/rabbit@my-rabbit
@ogazitt
ogazitt / auth.go
Created April 14, 2020 05:53
Auth0 PKCE flow for a CLI built in golang
package auth
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/url"
@TrinhTrungDung
TrinhTrungDung / main_test.go
Created March 20, 2020 12:34
Test benchmark using INSERT without batching
func BenchmarkCreate(b *testing.B) {
db, err := gorm.Open("postgres", "host=localhost port=5432 user=testuser dbname=testdb password=123456 sslmode=disable")
if err != nil {
fmt.Println(err)
}
defer db.Close()
users := stubUsers(b)
tx := db.Begin()
valueStrings := []string{}
<html>
<head>
<style type='text/css'>
body, html {
margin: 0;
padding: 0;
}
body {
color: black;
display: table;
@dosjota
dosjota / gist:9666a7274b4036588b92987b84267245
Created June 6, 2018 02:18
Downgrade php 7.2 to 7.1 in Ubuntu 18.04 LTS
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1
sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm php7.1-intl php7.1-simplexml
sudo a2dismod php7.2
sudo a2enmod php7.1
sudo service apache2 restart
sudo update-alternatives --set php /usr/bin/php7.1
sudo update-alternatives --set phar /usr/bin/phar7.1
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1

How to install Laravel globally in Ubuntu

===================================================================

Open your terminal using Ctrl+Alt+T and type the following commands

Step 1: Install Laravel

composer global require "laravel/installer"
@fbn4sc
fbn4sc / command.txt
Created January 29, 2018 01:35
Delete all branches except master and develop.
git branch | grep -v "master\|develop" | xargs git branch -D