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
#!/bin/bash | |
# Install jitsi-desktop 2.10.5550-1 | |
# Tested on: | |
# - Ubuntu 20.04, 21.10 and 22.04 | |
# - Elementary OS 6.1 | |
# ---------------------------------------------------------- | |
# Add missing dependencies and force to run with openjdk-8 | |
[ "$(id -u)" -ne 0 ] && echo "This script must be run as root" && exit 1 |
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
version: "3.7" | |
services: | |
db: | |
image: mariadb:latest | |
restart: always | |
volumes: | |
- volDb:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: 1234 |
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
#!/bin/bash | |
sudo wondershaper -c -a wlp2s0 | |
echo speed limit removed |
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
# [🟨OPTIONAL] Uninstall old docker versions | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
# Refresh latest version | |
sudo apt-get update | |
# Install pre-req | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ |
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
# https://linuxconfig.org/how-to-customize-dock-panel-on-ubuntu-20-04-focal-fossa-linux | |
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false | |
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM | |
#gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED | |
#gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 64 | |
gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true | |
gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows' |
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
type IPMatcher struct { | |
IP net.IP | |
SubNet *net.IPNet | |
} | |
type IPMatchers []*IPMatcher | |
func NewIPMatcher(ipStr string) (*IPMatcher, error) { | |
ip, subNet, err := net.ParseCIDR(ipStr) | |
if err != nil { |
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 cv2 | |
import time | |
CONFIDENCE_THRESHOLD = 0.2 | |
NMS_THRESHOLD = 0.4 | |
COLORS = [(0, 255, 255), (255, 255, 0), (0, 255, 0), (255, 0, 0)] | |
class_names = [] | |
with open("classes.txt", "r") as f: | |
class_names = [cname.strip() for cname in f.readlines()] |
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
package main | |
import ( | |
"bytes" | |
"context" | |
"flag" | |
"io" | |
"path/filepath" | |
"fmt" |
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 cv2 | |
import time | |
CONFIDENCE_THRESHOLD = 0.2 | |
NMS_THRESHOLD = 0.4 | |
COLORS = [(0, 255, 255), (255, 255, 0), (0, 255, 0), (255, 0, 0)] | |
class_names = [] | |
with open("classes.txt", "r") as f: | |
class_names = [cname.strip() for cname in f.readlines()] |
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
from kivy.app import App | |
from kivy.clock import Clock | |
from kivy.properties import ( | |
ListProperty, DictProperty, StringProperty, BooleanProperty) | |
from kivymd.theming import ThemeManager | |
from kivy.lang import Builder | |
from kivymd.uix.dialog import MDDialog | |
from kivymd.uix.list import OneLineIconListItem, ILeftBodyTouch | |
from kivymd.uix.selectioncontrol import MDCheckbox |
NewerOlder