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
ZiTAL / _a.sh
Last active Feb 15, 2020
debian / raspberry-pi: amule-daemon
View _a.sh
# check the content of every nano files in the gist
su
apt-get install amule-daemon
exit
nano /home/pi/.aMule/amule.conf
mkdir -p /home/pi/downloads/tmp
su
nano /etc/default/amule-daemon
@ZiTAL
ZiTAL / beacon.php
Last active Feb 4, 2020
php: beacon algorithm
View beacon.php
<?php
$error_break = 2;
$error_array = array();
$beacon_set_list = getBeacons(true);
// reset errors
foreach($beacon_set_list as $beacon)
$error_array[$beacon] = 0;
echo "Initial Beacon list:\n";
@ZiTAL
ZiTAL / dd.sh
Last active Jan 10, 2020
raspberry pi: change / upgrade SD card
View dd.sh
su
# connect SD card to PC
dmesg
```
[ 840.278065] mmc0: new high speed SDHC card at address aaaa
[ 840.296719] **mmcblk0**: mmc0:aaaa SL16G 14.8 GiB
```
dd bs=4M if=/dev/mmcblk0 of=rpi.img conv=fsync
# disconnect SD card, and connect new one
@ZiTAL
ZiTAL / README.md
Last active Dec 25, 2019
ASUS RT-AC68U: Soms Connexio Eticom Vodafone router neutro-a konfiguratzeko gida
View README.md

RT-AC68U: Soms Connexio Eticom Vodafone router neutro-a konfiguratzeko gida

  1. alta.internet@somconnexio.coop helbidera e-postara bidali esanez vodafone-ren PPPoE erabiltzaile eta pasahitza nahi dituzula router-a konfiguratzeko
  2. vodafone kontaktuan jarriko da eta emango dizkizu, adibidez: user: VFH5000121727@vodafone passwd: V66Q7K6F
  3. Asus router-eko WAN portua konektatu fibrako router-eko LAN1 portura
@ZiTAL
ZiTAL / hosts.conf
Created Dec 24, 2019
nginx: resolver localhost
View hosts.conf
# /etc/hosts
# ...
127.0.0.1 zital.garapena
# ...
@ZiTAL
ZiTAL / git.sh
Created Dec 23, 2019
git: txuletatxe
View git.sh
# reset
git reset --hard origin/master
# cherry pick
git cherry-pick f1176ba4c93cd10817df0f237badaf48104a00e8
# errama barri bet hartzieko
git fetch
git branch -a
git checkout -b kontaketa origin/kontaketa
@ZiTAL
ZiTAL / mastodon_credentials.py
Last active Nov 30, 2019
python: create mastodon credentials file
View mastodon_credentials.py
# pip3 install mastodon.py
from mastodon import Mastodon
instance = 'https://botsin.space'
user = 'user@mail.com'
passwd = 'passwd'
file_secret = 'mastodon.secret'
file_credentials = 'mastodon.credentials'
@ZiTAL
ZiTAL / docker-net.py
Last active Dec 10, 2019
docker laradock
View docker-net.py
#!/usr/bin/python3
# -*- 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
ZiTAL / settings.json
Created Sep 30, 2019
vscode: enable search files listed in .gitignore
View settings.json
"search.useIgnoreFiles": false
You can’t perform that action at this time.