I put IPFS on a Raspberry Pi and so should you!
- Raspberry Pi 3 B: $43
- Micro SD card: $11
- [Raspberry Pi charger](ht
| --- | |
| --- license: public domain | |
| --- author: denis dos santos silva | |
| --- date : 20/05/17 | |
| --- lua 5.1+ | |
| --- | |
| function processa(data) | |
| local _c3 = {}; | |
| local _c; |
| /* | |
| c, ansi c, ansi c99, exemplo, faculdade, notas, alunos, ... | |
| aceita input pelo teclado ou via argumentos | |
| https://groups.google.com/g/ccppbrasil/c/WIJkUFWlcNg |
| @echo off | |
| echo "be careful this can explode your disk" | |
| echo "hit enter to continue" | |
| pause | |
| d: | |
| cd d:\docs | |
| takeown /r /f * | |
| ICACLS * /T /Q /C /RESET | |
| pause |
| #!/bin/sh | |
| set -e | |
| su gitea | |
| cd /home/git/gitea | |
| ./gitea --version | |
| ./gitea admin change-password --username your-login --password your-new-super-password | |
| exit 0 |
| #!/bin/sh | |
| set -e | |
| # TODO: | |
| # - check arguments | |
| # - check file | |
| ffmpeg -i $1 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 `basename $1 .mp4`_480p.mp4 |
| #!/bin/sh | |
| # | |
| # download package from http://syslog4j.org/ | |
| # check also https://manpages.ubuntu.com/manpages/xenial/man1/logger.1.html | |
| # | |
| java -cp syslog4j-0.9.46-bin.jar \ | |
| org.productivity.java.syslog4j.server.SyslogServerMain \ | |
| -h 127.0.0.1 \ | |
| -p 9999 \ |
| -- insert or replace sqlite 3.x | |
| create table config( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, key text, value text ); | |
| insert into config values (1, "fg", "#ff00ff" ); | |
| insert or replace into config(id, key, value) values ((select id from config where key = "bg"), "bg", "0x00ff00"); | |
| SELECT * FROM config; | |
| $ sqlite3 < test.sql | |
| SQLite version 3.34.0 2020-12-01 16:14:00 | |
| 1|fg|#ff00ff |
| /* | |
| php -v | |
| PHP 8.0.28 (cli) (built: Feb 14 2023 18:33:29) ( NTS ) | |
| Copyright (c) The PHP Group | |
| Zend Engine v4.0.28, Copyright (c) Zend Technologies | |
| with Zend OPcache v8.0.28, Copyright (c), by Zend Technologies | |
| grep CI_VERSION system/core/CodeIgniter.php | |
| define('CI_VERSION', '3.0.0'); | |
| */ |
| -- | |
| -- based on https://www.php.net/manual/en/function.str-split.php | |
| -- feel to free to validate/adjust to uses asserto/error | |
| -- | |
| -- Denis Dos Santos Silva | |
| -- | |
| local function str_split(str, length) | |
| local result = {} | |
| local index = 1 |