$ sudo apt-get install tmux
This file contains 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
# Check for wget, if not installed, install it | |
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \ | |
&& sudo mkdir -p -m 755 /etc/apt/keyrings | |
# Set keyring path based on existence of /usr/share/keyrings/githubcli-archive-keyring.gpg | |
# If it is in the old location, use that, otherwise always use the new location. | |
if [ -f /usr/share/keyrings/githubcli-archive-keyring.gpg ]; then | |
keyring_path="/usr/share/keyrings/githubcli-archive-keyring.gpg" | |
else | |
keyring_path="/etc/apt/keyrings/githubcli-archive-keyring.gpg" |
This file contains 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
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}", | |
"LINUX_PATH/include", | |
"LINUX_PATH/include/uapi", | |
"LINUX_PATH/include/generated", | |
"LINUX_PATH/arch/x86/include", |
This file contains 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
import inspect | |
from django.conf import settings | |
from django.utils.importlib import import_module | |
from django.core.exceptions import ImproperlyConfigured | |
class AlreadyRegistered(Exception): | |
pass | |
This file contains 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
Credits | |
# https://c-nergy.be/blog/?p=13655 | |
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04 | |
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list | |
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio | |
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users | |
# https://gist.github.com/rkttu/35ecab5604c9ddc356b0af4644d5a226 | |
# Installation and Enhanced session | |
# follow steps on the post below, I installed Ubuntu 22.04 on a Windows 11 machine |
This file contains 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
.vscode/ | |
.terraform/ | |
*.hcl | |
*.info | |
*.tfstate | |
*.backup |
Forked from golang-standards/project-layout
This is a basic layout for Go application projects. It represents the most common directory structure with a number of small enhancements along with several supporting directories common to any real world application.
Clone the repository, keep what you need and delete everything else!
This file contains 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 = get-wmiobject win32_product | select identifyingnumber | |
foreach ($obj in $list) { | |
Write-Host ($obj | Format-List | Out-String) | |
msiexec /fs $obj.identifyingnumber /q | |
Start-Sleep 10 | |
} |
NewerOlder