Skip to content

Instantly share code, notes, and snippets.

View ahmadshobirin's full-sized avatar
😶‍🌫️

Ahmad Shobirin ahmadshobirin

😶‍🌫️
View GitHub Profile
@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 December 15, 2022 19:42
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
@rchl2
rchl2 / simple-default.blade.php
Last active April 7, 2024 16:02
Tailwind CSS simple pagination template for Laravel
@if ($paginator->hasPages())
<ul class="pagination flex justify-between mx-4 mt-4 list-reset text-white font-bold">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="disabled">
<span class="button bg-transparent border border-brown py-2 px-4 rounded opacity-50 cursor-not-allowed">@lang('pagination.previous')</span>
</li>
@else
<li>