Skip to content

Instantly share code, notes, and snippets.

View c4software's full-sized avatar
🎯
Focusing

Brosseau Valentin c4software

🎯
Focusing
View GitHub Profile
@c4software
c4software / Dockerfile
Created March 30, 2023 15:13 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli

Proxmox GPU Passthrough

Config :

  • Motherboard : Asrock x300
  • CPU : AMD Ryzen 5 PRO 4650G with Radeon Graphics
  • GPU : AMD Ryzen 5 PRO 4650G with Radeon Graphics
  • Ram : DDR4 2133 MHz

Setting it all up

Update packages

@c4software
c4software / rmad.sh
Created March 6, 2020 14:11 — forked from nobodyzxc/ad_remove_main.sh
remove ads in apk
APK="$1"
if [ -f $APK ];then
./apktool d "$APK"
grep -lR "\->loadAd" "${APK%.*}" | xargs sed -i '/\->loadAd/d'
./apktool b "${APK%.*}" -o "${APK%.*}_no_ad.apk"
java -jar sign.jar --overwrite --apks "${APK%.*}_no_ad.apk"
rm -rf "${APK%.*}"
else
echo "please input apk file"
fi
@c4software
c4software / download-multiple-files.js
Created June 6, 2018 08:56 — forked from noelvo/download-multiple-files.js
Download multiple files then compress to one zip file using JSZip & JSZip-utils
var zip = new JSZip();
var count = 0;
var zipFilename = "zipFilename.zip";
var urls = [
'http://image-url-1',
'http://image-url-2',
'http://image-url-3'
];
urls.forEach(function(url){
@c4software
c4software / yubikey-reset.sh
Created April 29, 2018 10:47 — forked from pkirkovsky/yubikey-reset.sh
Utility for resetting a Yubikey to factory defaults using gpg-connect-agent. This will wipe out any stored keys and reset PINs to default values.
gpg-connect-agent <<EOF
/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40