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:
<?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') ) { |
I hereby claim:
To claim this, I am signing this object:
#!/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 ] |
<!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 { |
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 |
;@Ahk2Exe-AddResource steam_logo.png, steam_logo.png | |
#Requires AutoHotkey v2.0+ | |
; --- Configuration --- | |
DryRun := false | |
DelaySeconds := (A_Args.Length > 0 && A_Args[1] != "") ? Number(A_Args[1]) : 5 | |
SteamPath := "C:\Program Files (x86)\Steam\Steam.exe" | |
LogoFile := LoadImageFromResource("steam_logo.png") | |
LogoSize := 200 |