cat ~/.netrc
machine github.com login <login-id> password <token-password>
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
# https://gist.github.com/Lazza/bbc15561b65c16db8ca8 | |
import os | |
import requests | |
import base64 | |
import time | |
import subprocess as sp | |
class VpnGate: | |
def __init__(self, country, config='/tmp/vpngate.ovpn'): |
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/bash | |
# https://itsfoss.com/speed-up-slow-wifi-connection-ubuntu/ | |
# increase wifi adapter power | |
# sudo iwconfig | |
sudo iwconfig wlo1 power off |
Update: https://baidu.kinh.cc is no longer working, Please use https://baidu.erranium.com for limited free downloads and paid downloads.
Also to support the author you can checkout the amazing free resources at https://www.youtube.com/@algoflyai/videos a sub will be appreciated.
Disclaimer:
- This methods uses a 3rd party website: https://baidu.kinh.cc/.
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/bash | |
function set_refresh_rate(){ | |
xrandr -d :1 --output $1 --mode $2 --rate $3 | |
} | |
# update refresh rate for main monitor | |
set_refresh_rate DP-0 2560x1440 60.00 | |
sleep 0.5 | |
set_refresh_rate DP-0 2560x1440 164.96 |
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/bash | |
export ANDROID_SERIAL=`adb devices -l | grep -i oneplus | awk '{print $1}'` | |
export HOST_PORT=8080 | |
export IPWEBCAM_PORT=8080 | |
export V4L2_DEVICE=/dev/video0 | |
function start_screen_mirror(){ | |
if [ ! `pgrep scrcpy` ];then |
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
import socket | |
from contextlib import closing | |
from concurrent.futures import ThreadPoolExecutor | |
from itertools import product | |
class Portsi: | |
def __init__(self, timeout: float = 2.0, workers: int = 1000): | |
"""Portsi is used to scan network for open ports | |
Args: |
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
# pip install paho-mqtt | |
import paho.mqtt.client as paho | |
import paho.mqtt.subscribe as subscribe | |
import uuid | |
import contextlib | |
import threading | |
import json | |
import time | |
class MQTTClient: |
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/bash | |
export ANDROID_SERIAL=`adb devices -l | grep -i oneplus | awk '{print $1}'` | |
droidcam-cli adb 4747& | |
scrcpy |
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
# https://stackoverflow.com/questions/59025321/capture-jpeg-images-from-rtsp-gstreamer | |
gst-launch-1.0 rtspsrc location="rtsp://admin:[email protected]/stream0" num-buffers=1 \ | |
! rtph264depay ! avdec_h264 \ | |
! nvjpegenc ! multifilesink location="./frame.jpg" |