This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cut video using ges-launch-1.0 | |
ges-launch-1.0 +clip input.mp4 inpoint=2.0 duration=5.0 -o output.mp4 | |
# amplify audio of an mp4 video | |
gst-launch-1.0 filesrc location=input.mp4 ! decodebin name=dec ! x264enc ! qtmux name=mux ! filesink location=output.mp4 dec. ! audioamplify amplification=0.6 ! audioconvert ! mux. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mount sdcard | |
udisksctl mount -b /dev/<sdcard-rootfs-devblock> | |
# install qemu-user-static and copy it inside raspberry rootfs | |
sudo apt install --no-install-recommends qemu-user-static | |
sudo cp /usr/bin/qemu-aarch64-static <rootfs-mountpoint>/bin | |
# chroot to raspberry os on host | |
sudo chroot <rootfs-mountpoint> /bin/qemu-aarch64-static /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# path: /var/lib/bluetooth/<hostdevid>/<remotedevid>/info | |
[General] | |
Name=M585/M590 | |
Appearance=<?> | |
AddressType=static | |
SupportedTechnologies=LE; | |
Trusted=true | |
Blocked=false | |
WakeAllowed=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "cppdbg", | |
"request": "launch", | |
"externalConsole": true, | |
"target": "./build/aprogram", | |
"cwd": "${workspaceRoot}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open port 11022 on remote and tunnel it port 22 on local | |
ssh <user>@<remote-ip> -R 11022:localhost:22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#forwarding port 5900 on remote to 25900 in local | |
ssh user@hostname -L 25900:localhost:5900 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list devices | |
scanimage -L | |
# scan with res 300 dpi | |
scanimage -d <device> --mode Color --resolution 300 -o scan.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS="=" read -ra dbuspathval <<< $DBUS_SESSION_BUS_ADDRESS | |
dbuspathval=${dbuspathval[1]} | |
docker run \ | |
-it \ | |
--privileged \ | |
--shm-size=2g \ | |
-e DISPLAY=$DISPLAY \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c | |
index 4fe15e1434b0..80c11ef5465a 100644 | |
--- a/drivers/bluetooth/btusb.c | |
+++ b/drivers/bluetooth/btusb.c | |
@@ -1935,6 +1935,8 @@ static int btusb_setup_csr(struct hci_dev *hdev) | |
*/ | |
set_bit(HCI_QUIRK_BROKEN_STORED_LINK_KEY, &hdev->quirks); | |
set_bit(HCI_QUIRK_BROKEN_ERR_DATA_REPORTING, &hdev->quirks); | |
+ set_bit(HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL, &hdev->quirks); | |
+ set_bit(HCI_QUIRK_NO_SUSPEND_NOTIFIER, &hdev->quirks); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rclone mount --vfs-cache-mode writes --stats 1m --stats-one-line <remote> <local> -v |
NewerOlder