The goal is being able to mix your microphone and desktop audio into a single track, while leaving Discord out of the equation. This allows you to stream your desktop audio and talk while in a call, without your partners hearing themselves.
docker run -v "${HOME}/.config/gcloud:/.config/gcloud" -it us-docker.pkg.dev/gcr-cleaner/gcr-cleaner/gcr-cleaner-cli -grace "720h" -repo us.gcr.io/<project> -recursive -keep 10 -tag-filter-any "^.*$" |
#!/usr/bin/env bash | |
sudo rm /etc/resolv.conf | |
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' | |
sudo bash -c 'echo "[network]" > /etc/wsl.conf' | |
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf' | |
# Make resolv.conf immutable so that the OS can't change it. | |
# If you'd like to make changes to this file later, you've to | |
# make it mutable again by issuing the following command: | |
# sudo chattr -i /etc/resolv.conf | |
sudo chattr +i /etc/resolv.conf |
#!/bin/bash | |
CLEAR='\033[0m' | |
RED='\033[0;31m' | |
function usage() { | |
if [ -n "$1" ]; then | |
echo -e "${RED}👉 $1${CLEAR}\n"; | |
fi | |
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]" |
#!/usr/bin/env bash | |
# Resize logical volume to use all the existing and free space of the volume group | |
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv | |
# Resize file system to use all available space in logical volume | |
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv | |
# This should do the trick! |
#!/usr/bin/env bash | |
# Usage: bash gdrive-download.sh <fileid> <filename> | |
fileid=$1 | |
filename=$2 | |
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null | |
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} |
My typical setup for a development box in VirtualBox uses two NICs. The first uses NAT to allow the box to communicate with the outside world through my host computer’s network connection. (NAT is the default, so shouldn't require any setup.) The second is a "host-only" connection that allows my host and guest to interact.
To create a host-only connection in VirtualBox, start by opening the preferences in VirtualBox. Go to the "Network" tab, and addd a Host-only Network. Modify the host-only network, and disable DHCP. Make a note of the IP address. (Feel free to set the IP address as well, if you like.)
Next, assign this host-only adapter to the virtual machine. Select the VM and press "Settings". Go to the "Network" tab, and select "Adpater 2". Enable the adapter, set it to a "Host-only Adapter", and select the adpater you created above.
A simple spell, but quite effective.
What you want is a PNG of an object,
You want to save it as a specific size (1000px for instance)
You then want to draw an SVG vector around the section you want to color change. This section on the PNG should be photoshopped white.
if ($http_user_agent ~* (360Spider|80legs.com|Abonti|AcoonBot|Acunetix|adbeat_bot|AddThis.com|adidxbot|ADmantX|AhrefsBot|AngloINFO|Antelope|Applebot|BaiduSpider|BeetleBot|billigerbot|binlar|bitlybot|BlackWidow|BLP_bbot|BoardReader|Bolt\ 0|BOT\ for\ JCE|Bot\ mailto\:craftbot@yahoo\.com|casper|CazoodleBot|CCBot|checkprivacy|ChinaClaw|chromeframe|Clerkbot|Cliqzbot|clshttp|CommonCrawler|comodo|CPython|crawler4j|Crawlera|CRAZYWEBCRAWLER|Curious|Curl|Custo|CWS_proxy|Default\ Browser\ 0|diavol|DigExt|Digincore|DIIbot|discobot|DISCo|DoCoMo|DotBot|Download\ Demon|DTS.Agent|EasouSpider|eCatch|ecxi|EirGrabber|Elmer|EmailCollector|EmailSiphon|EmailWolf|Exabot|ExaleadCloudView|ExpertSearchSpider|ExpertSearch|Express\ WebPictures|ExtractorPro|extract|EyeNetIE|Ezooms|F2S|FastSeek|feedfinder|FeedlyBot|FHscan|finbot|Flamingo_SearchEngine|FlappyBot|FlashGet|flicky|Flipboard|g00g1e|Genieo|genieo|GetRight|GetWeb\!|GigablastOpenSource|GozaikBot|Go\!Zilla|Go\-Ahead\-Got\-It|GrabNet|grab|Grafula|GrapeshotCrawler|GTB5|GT\:\:WWW|Guzz |
// docker container export -o <filename.tar> <container-id> | |
Example: | |
docker container export -o ~/backend-fs.tar 854fa1d88b6b |