Skip to content

Instantly share code, notes, and snippets.

View SantiiRepair's full-sized avatar
🙆‍♂️
damn i'm fixing it

Santiago Ramirez SantiiRepair

🙆‍♂️
damn i'm fixing it
View GitHub Profile

Install MySQL on Windows by scoop

Install latest version of MySQL via scoop package manager on Windows. If you want to install specific version of MySQL, just replace "mysql" with "mysql@version". For example: "[email protected]".

Install MySQL

scoop install mysql -g

Configure MySQL as a Windows Service

@tijme
tijme / generate-iso-image.py
Last active November 20, 2024 20:46
Generate an ISO image/file using Python on Windows
# pip install pycdlib
try:
from cStringIO import StringIO as BytesIO
except ImportError:
from io import BytesIO
import pycdlib
iso = pycdlib.PyCdlib()
@Jswizzy
Jswizzy / InstallingSwift.md
Last active July 9, 2025 10:23
Swift Install Instruction 20.04

Installing Swift on Ubuntu 20.04

1. Install Depencies

“clang”[ˈklæŋ] is the compiler based on LLVM for C, C++, Objective-C, and Objective-C++. clang is needed to install in order to Swift. Run the following code in Ubuntu terminal.

Before installing swift “libpython2.7” and “libpython2.7-dev” are needed to get Swift running. Run the following code.

@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active July 21, 2025 18:57
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

Python Virtualenvs

This is the method I use to install different versions of python on different virtualenvs, which is also compatible with spacemacs autocompletion.

Installation (Arch family)

Install pyenv and pyenvvirtualenvwrapper (do not install pyenv-virtualenv)

If you already installed python-virtualenvwrapper from pacman or pip directly, remove it. These steps only work well on a fresh installation.

pacman -S pyenv
@miguelmota
miguelmota / hdwallet.go
Created July 7, 2018 22:25
Golang Ethereum HD Wallet implementation
package hdwallet
import (
"crypto/ecdsa"
"errors"
"fmt"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil/hdkeychain"
"github.com/ethereum/go-ethereum/accounts"
@Ashok-Varma
Ashok-Varma / install_android_sdk_tools_in_linux_for_custom_ci.md
Last active June 19, 2025 10:15
Install Android SDK tools in linux. Can be used for custom CI (Continuous Integration)
@DusanMadar
DusanMadar / TorPrivoxyPython.md
Last active July 16, 2025 00:25
A step-by-step guide how to use Python with Tor and Privoxy

A step-by-step guide how to use Python with Tor and Privoxy

Latest revision: 2021-12-05.

Tested on Ubuntu 18.04 Docker container. The Dockerfile is a single line FROM ubuntu:18.04. Alternatively, you can simply run docker run -it ubuntu:18.04 bash.

NOTE: stopping services didn't work for me for some reason. That's why there is kill $(pidof <service name>) after each failed service <service name> stop to kill it.

References

@AgentOak
AgentOak / youtube_formats.md
Last active July 19, 2025 02:59
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@christianroman
christianroman / test.py
Created May 30, 2013 16:02
Bypass Captcha using 10 lines of code with Python, OpenCV & Tesseract OCR engine
import cv2.cv as cv
import tesseract
gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE)
cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY)
api = tesseract.TessBaseAPI()
api.Init(".","eng",tesseract.OEM_DEFAULT)
api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz")
api.SetPageSegMode(tesseract.PSM_SINGLE_WORD)
tesseract.SetCvImage(gray,api)
print api.GetUTF8Text()