Keybase proof
I hereby claim:
- I am dhayab on github.
- I am dhaya (https://keybase.io/dhaya) on keybase.
- I have a public key whose fingerprint is E849 877A ADC4 E5C6 7A41 BB74 CA98 A8F6 815E DAAE
To claim this, I am signing this object:
for FILE in *.gif; do | |
docker run -it --rm -v $(pwd):$(pwd) -w $(pwd) jrottenberg/ffmpeg:4.1 -i $FILE -c vp9 -b:v 0 -crf 40 -vf scale=512:-1 ${FILE/gif/webm} | |
; done |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>WebSocket Logger</title> | |
<link rel="stylesheet" href="https://dhayab.github.io/luxafor-webusb/demo.css"> | |
<style> | |
.console .log a { |
## | |
# Display colored FTP access and transfer log | |
## | |
#!/bin/bash | |
PATTERN="User (.*): Login successful|/home/ftp/([a-z0-9\/._-\&\(\)]{1,})|FTP session closed" | |
sudo tail -n 100 -f /var/log/proftpd.log | egrep -i "$PATTERN" --color=auto |
#!/bin/bash | |
# | |
# Info: Creates a swapfile and sets specific parameters on Ubuntu-based cloud VMs. | |
# Tested with Ubuntu 14.04 on DigitalOcean. | |
# Based on: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 | |
SIZE=1G | |
FILE=/swapfile | |
if [ "$EUID" -ne 0 ] |
[ | |
// Change key binding to open console on non-qwerty keyboards | |
{ "keys": ["ctrl+&"], "command": "show_panel", "args": { "panel": "console", "toggle": true } }, | |
// Swap lines | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
// Code folding | |
{ "keys": ["ctrl+shift+keypad_plus"], "command": "unfold_all" }, | |
{ "keys": ["ctrl+shift+keypad_minus"], "command": "fold_all" }, | |
// Fix Beginning + End of line |
I hereby claim:
To claim this, I am signing this object:
<?php | |
App::before(function($request)) | |
{ | |
if ( in_array(Request::segment(1), Config::get('app.languages')) ) { | |
Session::put('locale', Request::segment(1)); | |
} else { | |
return Redirect::to(Config::get('app.locale')); | |
} | |
if ( Session::has('locale') ) { |
# Rewrite for content. | |
if (!-d $request_filename) { | |
rewrite ^/(.+)/$ /$1 permanent; | |
} | |
location ~* \.php$ { |
<?php | |
/* | |
* Multilingual URLs in Laravel 4 | |
*/ | |
//config/app.php | |
return array( | |
... |