Skip to content

Instantly share code, notes, and snippets.

View denisdemaisbr's full-sized avatar

DENIS DOS SANTOS SILVA denisdemaisbr

View GitHub Profile
@denisdemaisbr
denisdemaisbr / ipfs-on-raspberry-pi.md
Created May 8, 2022 08:28 — forked from peterVG/ipfs-on-raspberry-pi.md
Put IPFS decentralized storage on your Raspberry Pi with USB storage

I put IPFS on a Raspberry Pi and so should you!

Total cost of joining the decentralized storage revolution with your own lo-fi node: $124 USD

raspberry-ipfs

@denisdemaisbr
denisdemaisbr / ffmpeg-to-480p.sh
Last active April 7, 2022 00:45 — forked from blacklee/ffmpeg-to-480p.sh
ffmpeg convert video to 480p
#!/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
@denisdemaisbr
denisdemaisbr / gitea-passwd.sh
Created March 26, 2022 18:26
how change password of gitea user's
#!/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
@denisdemaisbr
denisdemaisbr / reset_act.bat
Created March 26, 2022 14:28
how reset windows ntfs permissions (be careful)
@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
/*
c, ansi c, ansi c99, exemplo, faculdade, notas, alunos, ...
aceita input pelo teclado ou via argumentos
https://groups.google.com/g/ccppbrasil/c/WIJkUFWlcNg
---
--- license: public domain
--- author: denis dos santos silva
--- date : 20/05/17
--- lua 5.1+
---
function processa(data)
local _c3 = {};
local _c;