Skip to content

Instantly share code, notes, and snippets.

View pablodz's full-sized avatar
🚀
9.99x Engineer

Pablo pablodz

🚀
9.99x Engineer
View GitHub Profile
@joker-x
joker-x / install-jitsi-desktop.bash
Last active November 10, 2023 08:09
Install jitsi-desktop 2.10.5550-1 on Ubuntu 20.04, 21.10 or 22.04
#!/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
@serdarde
serdarde / docker-compose.yml
Created April 15, 2022 23:00
Docker Compose Example for PhpMyAdmin & MariaDB
version: "3.7"
services:
db:
image: mariadb:latest
restart: always
volumes:
- volDb:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 1234
@egyleader
egyleader / fast_internet.sh
Last active December 14, 2022 02:13
Limit network bandwidth in linux using wondershaper
#!/bin/bash
sudo wondershaper -c -a wlp2s0
echo speed limit removed
@pablodz
pablodz / install_docker_in_ubuntu_21-10.sh
Last active June 17, 2023 20:58
Install Docker in Ubuntu 21.10, Install Dockercompose on Ubuntu 21.10
# [🟨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 \
@pablodz
pablodz / gnome-dock.sh
Last active May 20, 2022 23:45
gnome-dock
# 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'
@wuyanxin
wuyanxin / ipmatcher.go
Created July 8, 2021 09:10
ip match in golang
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 {
@wlstyql
wlstyql / yolov4.py
Created October 8, 2020 04:27 — forked from YashasSamaga/yolov4.py
YOLOv4 inference using OpenCV DNN
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()]
@amlwwalker
amlwwalker / stream.go
Last active March 2, 2024 23:31
Golang VAD and Google Speech To Text
package main
import (
"bytes"
"context"
"flag"
"io"
"path/filepath"
"fmt"
@YashasSamaga
YashasSamaga / yolov4.py
Last active February 18, 2024 04:03
YOLOv4 on OpenCV DNN
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()]
@kristoffer-paulsson
kristoffer-paulsson / confirmation.py
Created November 6, 2019 01:11
KivyMD implementation of Modern Design confirmation dialog.
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