Skip to content

Instantly share code, notes, and snippets.

View louy's full-sized avatar
I may be slow to respond.

Louay Akkad louy

I may be slow to respond.
View GitHub Profile
louy /
Created November 6, 2023 19:36
`git diff --name-status` using `gh` GitHub CLI
# git diff --name-status
gh api repos/$OWNER/$REPO/compare/$HEAD...$BASE | jq -r '
.files[] |
if .status == "modified" then "M"
elif .status == "added" then "A"
elif .status == "removed" then "D"
else "?"
louy / fresha-search-layout.markdown
Created May 24, 2023 08:37
Fresha Search Layout
louy /
Last active June 6, 2023 02:23
Replit database import/export
# Export to a folder
mkdir -p db
cd db
curl -k $REPLIT_DB_URL?prefix= | xargs -I@ curl -k -O "$REPLIT_DB_URL/@"
cd ..
tar -czvf db.tar.gz db
# Then download db.tar.gz manually
louy / AccessibilityWrapper.tsx
Last active November 30, 2023 10:23
RN Accessibility Wrapper, a custom view that allows you to control the accessibility behaviour of a React Native component tree
* @author Louay Alakkad (
* @license MIT
import React from 'react'
import PropTypes from 'prop-types'
import {
louy / index.html
Created December 18, 2018 19:51
React prototype boilerplate
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta charset="utf-8">
<div id="root"></div>
<script src=""></script>
<script src=""></script>
louy /
Last active August 19, 2019 13:39
aws-cli mfa session utility
# AWS MFA session util
# Setup:
# assuming you're using a profile called "default":
# In ~/.aws/config, set up a default-mfa-temp profile:
# ```
# [default]
# region = eu-west-2
# [default-mfa-temp]
# region = eu-west-2

Keybase proof

I hereby claim:

  • I am louy on github.
  • I am louay ( on keybase.
  • I have a public key ASBtmGtwrtSjxZxz-xcoWXvlt2aQt_RP7QT7QbdYobGkzwo

To claim this, I am signing this object:

set -e
git branch | grep -v "master" | xargs git branch -d
git fetch origin --prune
louy / nginx.conf
Created April 28, 2016 21:23
Docker Nginx Config
daemon off;
user nginx;
worker_processes 1;
pid /var/run/;
events {
worker_connections 1024;
for FILE in $(git ls-files)
TIME=$(git log --pretty=format:%cd -n 1 --date=iso $FILE)
TIME=$(date -j -f '%Y-%m-%d %H:%M:%S %z' "$TIME" +%Y%m%d%H%M.%S)
touch -m -t $TIME $FILE