I hereby claim:
- I am RafikFarhad on github.
- I am rafikfarhad (https://keybase.io/rafikfarhad) on keybase.
- I have a public key whose fingerprint is 1319 308A DB38 EB53 DD47 77C6 2A02 B0B7 50CF 3BCB
To claim this, I am signing this object:
source /Users/farhad/.my-dot-files/zshrc.conf | |
source /Users/farhad/.my-dot-files/legacy/.aliases | |
if [[ $(uname -m) == "x86_64" ]]; then | |
echo "x86_64 detected" | |
export PATH=/usr/local/Homebrew/bin:$PATH | |
else | |
echo "arm64 detected" | |
# the following line prioritize the arm brew's installation | |
export PATH=/opt/homebrew/bin:$PATH |
#!/bin/bash | |
# System-wide crontab file and cron job directory. Change these for your system. | |
CRONTAB='/etc/crontab' | |
CRONDIR='/etc/cron.d' | |
# Single tab character. Annoyingly necessary. | |
tab=$(echo -en "\t") | |
# Given a stream of crontab lines, exclude non-cron job lines, replace |
/*! | |
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | |
* For licensing, see LICENSE.md. | |
*/ | |
/*eslint-disable*/!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1","Align center":"Align center","Align left":"Align left","Align right":"Align right","Block quote":"Block quote",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image cap |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
mode=$1 | |
if [ "$mode" = "stop" ] | |
then | |
echo -e "Stopping Services..." | |
sudo service nginx stop | |
sudo service mysql stop | |
sudo service php7.3-fpm stop |
#!/bin/bash | |
# Author: Rafik Farhad | |
# 26-06-2019 | |
# cat file.sh | SSHPASS=****** sshpass -e ssh root@host | |
echo -e "\e[32mLogged in to server\e[39m" | |
echo -e "" | |
echo -e "\e[32m--------------------------------------\e[39m" | |
echo -e "\e[32mBackend\e[39m" |
public function mergeQueryPaginate(\Illuminate\Database\Eloquent\Builder $query): \Illuminate\Pagination\LengthAwarePaginator | |
{ | |
$raw_query = $query; | |
$totalCount = $raw_query->get()->count(); | |
$page = request('page', 1); | |
$skip = $perPage * ($page - 1); | |
$raw_query = $raw_query->take($perPage)->skip($skip); | |
$parameters = request()->getQueryString(); |
swipe: | |
3: | |
left: | |
command: 'xdotool key alt+Tab' | |
right: | |
command: 'xdotool key alt+shift+Tab' | |
up: | |
command: 'xdotool key super' | |
down: | |
command: 'xdotool key super' |
#!/bin/bash | |
brightness=$(cat "/sys/class/leds/asus::kbd_backlight/brightness") | |
# a=$((brightness-1)) | |
if [ "$brightness" -gt 2 ] | |
then | |
a=0 | |
echo $a >> /sys/class/leds/asus\:\:kbd_backlight/brightness | |
elif [ "$brightness" -gt 0 ] | |
then | |
a=$((brightness+1)) |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
# |