This example takes olddisk.qcow2
and resizes it into newdisk.qcow2
,
extending one of the guest's partitions to fill the extra space.
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
$ modprobe bridge | |
$ echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf | |
$ sysctl -p /etc/sysctl.conf | |
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory | |
# SOLUTION | |
$ modprobe br_netfilter | |
$ sysctl -p /etc/sysctl.conf |
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/env python | |
import ctypes | |
import struct | |
import sys | |
import os | |
import array | |
EFI_CAPSULE_GUID = "BD86663B760D3040B70EB5519E2FC5A0".bytes.fromhex() # 3B6686BD-0D76-4030-B70E-B5519E2FC5A0 | |
EFI2_CAPSULE_GUID = "8BA63C4A2377FB48803D578CC1FEC44D".bytes.fromhex() # 4A3CA68B-7723-48FB-803D-578CC1FEC44D | |
UEFI_CAPSULE_GUID = "B9829153B5AB9143B69AE3A943F72FCC".bytes.fromhex() # 539182B9-ABB5-4391-B69A-E3A943F72FCC |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
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
for svg in $(ls ./svg); do | |
filename=$(echo $svg | cut -d'.' -f1) | |
convert -background none -density 1000 -resize 1000x svg/$(echo $filename).svg png/$(echo $filename).png | |
echo [DONE] $filename converted! | |
done |
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
// ImageMagick - Convert SVG to PNG w/ transparency | |
// | |
// - open terminal | |
// | |
// - confirm you have imagemagick installed | |
// --- type: convert -v | |
// | |
// - cd to folder | |
// | |
// - single file |
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
# /usr/share/usb_modeswitch/2001:ac01 | |
# Run manually if required using: | |
# usb_modeswitch -v 0x2001 -p 0xac01 -c /usr/share/usb_modeswitch/2001:ac01 | |
# D-Link DWM-222 A2 | |
TargetVendor=0x2001 | |
TargetProduct=0x7e3d | |
StandardEject=1 |
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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
There are a few decent tutorials on how to setup hotspot on Linux, which I will share below, but this tutorial will focus on adversities that you without doubt will face while setting up your AP.
For AP setup we will need:
- Hostapd utility
- Some dhcp utility
- A bit of patience (that was for my case)
In terminal type sudo iw list
this command will show info about your wifi interfaces. Look for Supported interface entry, if AP
is in it, that means your Wifi devices support hotspot mode.
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
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
NewerOlder