Skip to content

Instantly share code, notes, and snippets.

@bsdcpp
bsdcpp / cvi.sh
Last active August 27, 2021 06:55
simple script to create ctags & cscope files for reading code with vim.
#############################
#usage: 1. cvi.sh . -------> seaching files in current directory Recursively
# 2. cvi.sh sys -------> searching files in /usr/include
#
#I hope you can provide some suggestions, thank you.
#############################
#!/bin/bash
#####
#find . -regex ".*\.\(c\|h\|hpp\|cc\|cpp\)" -print
#####
@bsdcpp
bsdcpp / m3u8download.sh
Created April 26, 2019 03:10 — forked from patrickgill/m3u8download.sh
download m3u8 ts segments, then decode, join, and remux them! (HTTP Live Streaming TS files)
# download
aria2c -x 5 -i file.m3u8
# decode (example)
openssl aes-128-cbc -d -K 15D0F46608409DA364E3F5D92BDE9F61 -iv 00000000000000000000000000000000 -nosalt -in G00000000.ts -out G00000000.d.ts
# join all ts files
cat *.ts > out.ts
# convert ts output file
@bsdcpp
bsdcpp / PyTorStemPrivoxy.md
Created October 17, 2021 15:13 — forked from KhepryQuixote/PyTorStemPrivoxy.md
Python script to connect to Tor via Stem and Privoxy, requesting a new connection (hence a new IP as well) as desired.

Crawling Anonymously with Tor in Python

adapted from the article "Crawling anonymously with Tor in Python" by S. Acharya, Nov 2, 2013.

The most common use-case is to be able to hide one's identity using TOR or being able to change identities programmatically, for example when you are crawling a website like Google and you don’t want to be rate-limited or blocked via IP address.

Tor

Install Tor.