Skip to content

Instantly share code, notes, and snippets.

zital ZiTAL

Block or report user

Report or block ZiTAL

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ZiTAL / fstab
Created Sep 2, 2019
php: nfs Warning: file_put_contents(): Exclusive locks are not supported for this stream
View fstab /home/projects nfs rw,tcp,nolock,noacl,async,user,exec 0 0
Last active Aug 28, 2019
php: composer install globally
cd /tmp
php -r "copy('', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
cd -
ZiTAL / cookie_exists.js
Created Aug 9, 2019
js: cookie exists
View cookie_exists.js
Created May 31, 2019
bash: loop command from list
ls -1 | grep 16599 > 16599.txt
ZiTAL / index.html
Created May 3, 2019
hbbtv: cookie and localstorage tester
View index.html
<!DOCTYPE html PUBLIC "-//HbbTV//1.1.1//EN" "">
<html xmlns="" lang="en">
<meta http-equiv="content-type" content="application/vnd.hbbtv.xhtml+xml;charset=utf-8"/>
<div class="cookie">
Created May 1, 2019
heroku: upgrade stack
#upgrade stack:
heroku git:clone -a MY_PROJECT
nano index.php
git add index.php
git commit -m "upgrade"
git push heroku master
# RAID-a /dev/sda2 /dev/sdb eta /dev/sdc-gaz okindxotez, baie /dev/sdc jodidu eindxe, konponduteko, RAID-e gelditsu, eta ondo dauzen diskuekaz montatie ezan da "trukue"
# eskerrak:
mdadm -Esv
mdadm --stop /dev/md*
mdadm --verbose --assemble --force /dev/md0 /dev/sda2 /dev/sdb
ZiTAL / inline.js
Last active Apr 25, 2019
js: dynamic js load
View inline.js
'use strict';
function loadJs(ar, f)
var head = document.querySelector('head');
var l = ar.length;
var count = 0;
for(var i in ar)
Created Apr 23, 2019
ffmpeg: add mixing audio to video
ffmpeg -y -i b.mp4 -i 01.aac -filter_complex "[0:0][1:0] amix=inputs=2:duration=longest" output.mp4
Created Mar 18, 2019
curl: get response time
# based on:
#curl --silent --output /dev/null -w "
#namelookup: %{time_namelookup}s\n\
#connect: %{time_connect}s\n\
#appconnect: %{time_appconnect}s\n\
You can’t perform that action at this time.