Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Based on thread:
# https://www.dell.com/community/en/conversations/linux-general/inspiron-5570-ubuntu-1804-missing-fingerprint-reader-driver/647f7f90f4ccf8a8dee1402e?commentId=647f984bf4ccf8a8deb675dc
sudo apt update
sudo apt install libfprint-2-tod1 -y
wget http://dell.archive.canonical.com/updates/pool/public/libf/libfprint-2-tod1-broadcom/libfprint-2-tod1-broadcom_5.12.018-0ubuntu1~22.04.01_amd64.deb
sudo dpkg -i ./libfprint-2-tod1-broadcom_5.12.018-0ubuntu1~22.04.01_amd64.deb
sudo pam-auth-update
@goforbroke1006
goforbroke1006 / docker-compose.yaml
Last active October 6, 2023 20:05
Setup Vue on Ubuntu/Mac
version: "3.9"
services:
# http://localhost:8080/
web-static:
ports: [ "8080:80" ]
image: nginx:stable
volumes:
- ./dist/:/usr/share/nginx/html/:r
#!/bin/bash
# Store this file to flash-drive.
# Run as
# bash ./docker-flash.sh
# All images from list below will are installed.
# Also it keep dump nearby of flash-drive to reduce installation time with slow internet connection.
images_arr=(
"debian:bullseye-slim"
# fix
# you are missing the recommended JDK, no matter how many I install the module
# go to Unity Editor installation dir
chmod ug+x ./Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin/*
chmod ug+x ./Editor/Data/PlaybackEngines/AndroidPlayer/SDK/tools/bin/*
chmod ug+x ./Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/*
chmod ug+x ./Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platform-tools/adb
update-desktop-database ~/.local/share/applications
sudo update-desktop-database /usr/share/applications
sudo gtk-update-icon-cache
xdg-desktop-menu forceupdate
#!/bin/bash
set -e
PACKAGE_NAME=$1 # ca-certificates for example
cd /var/lib/dpkg/info
sudo rm ${PACKAGE_NAME}.*
sudo apt-get install -f && sudo dpkg --configure -a
#!/bin/bash
git reset --hard HEAD~10 # move to old commit (HEAD minus 10)
git merge --squash HEAD@{1} # merge all new commits posted after old commit
git commit -m "Initial commit" # set commit message
git push --force # force push to ignore origin commits' history
#include <wiringPi.h>
int main() {
// Red LED: Physical pin 37, BCM GPIO26, and WiringPi pin 25.
const int led = 25;
wiringPiSetup();
pinMode(led, OUTPUT);

How to install Ubuntu on new laptop with locked SSD disk (and keep Windows)

Windows 10, Ubuntu, Intel RST, BitLocket,

Switch Windows 10 from RAID/IDE to AHCI

origin article