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
Last active Nov 30, 2019
python: create mastodon credentials file
# pip3 install
from mastodon import Mastodon
instance = ''
user = ''
passwd = 'passwd'
file_secret = 'mastodon.secret'
file_credentials = 'mastodon.credentials'
Last active Dec 10, 2019
docker laradock
# -*- coding: utf-8 -*-
from sys import exit, argv
from getpass import getuser
from subprocess import getoutput
from re import findall, MULTILINE
user = getuser()
View gist:c5d5dd6c42f7b898ab5d7b1a9851c62c
ffmpeg -y -i input01.mp3 -i input02.mp3 -filter_complex "[0:a][1:a] amix=inputs=2:duration=longest[a]" -map "[a]" output.mp3
ZiTAL / settings.json
Created Sep 30, 2019
vscode: enable search files listed in .gitignore
View settings.json
"search.useIgnoreFiles": false
Last active Sep 27, 2019
vscode arduino install instructions
# root moduen logie
# zital erabiltzailie dialout taldien sartun
usermod -a -G dialout zital
# zital erabiltzailie tty taldien sartun
usermod -a -G tty zital
# serial eta pyserial python3-tik kendu
pip3 uninstall serial pyserial
# esptool instalav
pip3 install esptool
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">
You can’t perform that action at this time.