Skip to content

Instantly share code, notes, and snippets.

View Potat0000's full-sized avatar
😃

Potat0 Potat0000

😃
View GitHub Profile
@Potat0000
Potat0000 / ipplus360.py
Last active May 11, 2024 06:21
AIWEN Tech IPv4 Geo-Info API Script
#!/usr/bin/env python3
###############################################################################
# AIWEN Tech IPv4 Geo-Info API Script #
# Only Support District-Level Query #
###############################################################################
# Requires Python 3.7+ due to the requirements of dnspython. #
# Tested on Debian 12. #
# #
# Use -h or --help option to get instructions. #
# Run the following command to install dependencies: #
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active June 29, 2024 08:05
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@nstanke
nstanke / enable_ws.sh
Last active March 5, 2024 14:43
Synology Bitwarden_rs Websocket setup without SSH
#!/bin/bash
LOC_DIR="/etc/nginx"
if [ ! -f $LOC_DIR/ws.locations ]; then
echo """
location /notifications/hub {
proxy_pass http://localhost:$3;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
@Potat0000
Potat0000 / auto-virtualenv
Created July 17, 2019 00:45
Auto activate and deactivate a virtualenv environment
#!/usr/bin/env zsh
#
# Auto activate and deactivate a virtualenv environment
#
# Usage:
#
# Add the following code to your zshrc file. If you are using bash, change the header to bash and put the following code to your bashrc.
# ```
# source /dir/to/auto-virtualenv
# ```
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active June 29, 2024 07:22
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@styblope
styblope / docker-api-port.md
Last active June 20, 2024 07:07
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
#!/usr/bin/env bash
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\
function register_clang_version {
local version=$1
local priority=$2
update-alternatives \
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \
@xcatliu
xcatliu / (已失效)中国区用户在开启 GitHub 两步验证中遇到的问题
Last active March 7, 2024 02:53
(已失效)中国区用户在开启 GitHub 两步验证中遇到的问题
2023.8.28
据多名网友回复,此方法已失效。
最新解决办法请参考此贴:[v2ex: 请问 github 的两步验证(two-factor authentication)大家是怎么做的?](https://www.v2ex.com/t/967533)
https://www.v2ex.com/t/967533
---