Skip to content

Instantly share code, notes, and snippets.

View yabasha's full-sized avatar

Ya Basha yabasha

View GitHub Profile
@yabasha
yabasha / .env-Swoole
Created June 3, 2022 18:26 — forked from kiddtang/.env-Swoole
Youtube - Boosts your Laravel Sail
OCTANE_SERVER=swoole
OCTANE_HTTPS=true
@yabasha
yabasha / Kernel.php
Created March 7, 2022 06:57 — forked from djoudi/Kernel.php
Maintain localization / locale when using Laravel Livewire
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
//----
@yabasha
yabasha / Rounded edge line CSS
Created November 4, 2020 10:27 — forked from maban/Rounded edge line CSS
Line with rounded edges
h1:after {
content: " ";
display: block;
border-top: 2px solid skyblue;
border-bottom: 2px solid skyblue;
border-radius: 2px;
}
@yabasha
yabasha / Random-string in JS
Last active July 20, 2020 08:13 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
@yabasha
yabasha / raw_query.sql
Created May 14, 2020 11:01
Tables and raw query
select `commodities`.`name` as `commodity_name`, `price_types`.`name` as `type_name`, `measure_units`.`name` as `unit_name`, `global_admins`.`admin0_code` as `admin0`, `global_admins`.`admin0_name` as `country_name`, `global_admins`.`admin1_code` as `admin1`, `global_admins`.`admin1_name` as `governorate_name`, ROUND(AVG(CMP.price) / 1000, 3) as price from `commodities_monthly_prices` as `CMP` inner join `locations` on `CMP`.`location_id` = `locations`.`id` inner join `global_admins` on `locations`.`admin0` = `global_admins`.`admin0_code` inner join `commodities` on `CMP`.`commodity_id` = `commodities`.`id` inner join `price_types` on `CMP`.`price_type_id` = `price_types`.`id` inner join `measure_units` on `CMP`.`measure_unit_id` = `measure_units`.`id` where `locations`.`admin0` = ? group by `CMP`.`price_year`, `CMP`.`price_month`, `commodity_name`, `type_name`, `unit_name`, `global_admins`.`admin0_name`, `global_admins`.`admin0_code`, `global_admins`.`admin1_name`, `global_admins`.`admin1_code` order by `com
@yabasha
yabasha / Windows
Created October 2, 2019 06:36 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211
# Subscribe to my YouTube Channel -> https://lokjianming.page.link/CVLm #
How to Crack Sublime Text 3 with Hex Editor
1. Download & Install Sublime Text 3.2.2 Build 3211
2. Visit Hexed.it
3. Open file sublime_text.exe
4. Search address 97 94 0D
5. Change to 00 00 00
6. Export File
@yabasha
yabasha / gist:206d53a1dbcddaa642505f9325d8533b
Created June 23, 2019 11:04 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@yabasha
yabasha / README-Template.md
Created June 23, 2019 10:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@yabasha
yabasha / output.txt
Created April 22, 2019 06:42
The complete output of `vagrant destroy && vagrant up`.
E:\homestead (master -> origin)
λ vagrant -v
Vagrant 2.2.4
E:\homestead (master -> origin)
λ vagrant destroy
homestead-7: Are you sure you want to destroy the 'homestead-7' VM? [y/N] y
==> homestead-7: Forcing shutdown of VM...
==> homestead-7: Destroying VM and associated drives...
#!/bin/bash
#Purpose = Backup of Important Data
#Created on 15-08-2017
#Author = Bashar Ayyash
#Version 2.5
#START
TIME=`date +%b-%d-%y%s` # This Command will add date in Backup File Name.
FILENAME=backup-$TIME.tar.gz # Here I define Backup file name format.
SRCDIR=~/www # Location of Important Data Directory (Source of backup).
DESDIR=~/backup # Destination of backup file.