Keybase proof
I hereby claim:
- I am louy on github.
- I am louay (https://keybase.io/louay) on keybase.
- I have a public key ASBtmGtwrtSjxZxz-xcoWXvlt2aQt_RP7QT7QbdYobGkzwo
To claim this, I am signing this object:
/** | |
* @author Louay Alakkad (github.com/louy) | |
* @license MIT https://opensource.org/licenses/MIT | |
*/ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
import { | |
NativeModules, | |
ViewProps, | |
ViewPropTypes, |
# add as many as you need... | |
SetEnvIf CF-IPCountry SY RedirectSubdomain=syria | |
SetEnvIf CF-IPCountry AE RedirectSubdomain=uae | |
SetEnvIf CF-IPCountry EG RedirectSubdomain=egypt | |
# Only redirect if Host is not a subdomain | |
SetEnvIfNoCase Host ^.+\.example\.com$ !RedirectSubdomain | |
# Only redirect if cookie "noredirect" doesn't exist | |
SetEnvIfNoCase ^Cookie$ noredirect=true !RedirectSubdomain |
daemon off; | |
user nginx; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
# 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 |
# 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 |
/** | |
* is_email function from WordPress | |
* written in Javascript | |
* | |
* by Louy Alakkad <me@l0uy.com> | |
* | |
* Verifies that an email is valid. | |
* | |
* Does not grok i18n domains. Not RFC compliant. | |
* |
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Prototype</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script src="https://unpkg.com/react@16.7.0-alpha.2/umd/react.production.min.js"></script> | |
<script src="https://unpkg.com/react-dom@16.7.0-alpha.2/umd/react-dom.production.min.js"></script> |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
set -e | |
git branch | grep -v "master" | xargs git branch -d | |
git fetch origin --prune |
VERSION BUILD=8530828 RECORDER=FX | |
SET !ERRORIGNORE YES | |
TAB T=1 | |
SET !LOOP 1 | |
TAG POS={{!LOOP}} TYPE=A ATTR=CLASS:uiMediaThumb* EXTRACT=href | |
TAB OPEN | |
TAB T=2 | |
URL GOTO={{!EXTRACT}} | |
SET !EXTRACT NULL |