Skip to content

Instantly share code, notes, and snippets.

@xserveraws
xserveraws / TorPrivoxyPython.md
Created July 7, 2024 04:59 — forked from DusanMadar/TorPrivoxyPython.md
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

@xserveraws
xserveraws / privoxy
Created July 7, 2024 04:55 — forked from odevodyssey/privoxy
Privoxy Sample Configuration - Forwarding (HTTP and SOCKS) on OpenWrt
# /etc/config/privoxy
# replace username and password with proxy provided credentials
config privoxy 'privoxy'
option confdir '/etc/privoxy'
option logdir '/var/log'
option logfile 'privoxy.log'
list filterfile 'default.filter'
list actionsfile 'match-all.action'
@xserveraws
xserveraws / privoxy
Created July 7, 2024 04:55 — forked from odevodyssey/privoxy
Privoxy Sample Configuration - Forwarding (HTTP and SOCKS) on OpenWrt
# /etc/config/privoxy
# replace username and password with proxy provided credentials
config privoxy 'privoxy'
option confdir '/etc/privoxy'
option logdir '/var/log'
option logfile 'privoxy.log'
list filterfile 'default.filter'
list actionsfile 'match-all.action'
@xserveraws
xserveraws / office-activation.md
Created June 20, 2024 16:26 — forked from devomman/activate-office-windows-mac.md
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
@xserveraws
xserveraws / README.md
Created September 15, 2023 23:56 — forked from avoidik/README.md
Build Squid on Raspberry Pi with enabled SSL, SARG, SquidClamAV

Build Squid on Raspberry Pi with enabled SSL, optionally realtime SARG statistics and SquidClamAV

This is the short guide about how to recompile/enable --enable-ssl option in a Squid caching proxy server. The --enable-ssl option turned off by default, to be able to use SslBump feature we have to turn it on. To my own surprise Squid was compiled not only without --enable-ssl flag, but also with GnuTLS due to GPL legal reasons.

Optionally enable:

Squid

@xserveraws
xserveraws / setupenv
Created July 18, 2023 07:18 — forked from miwong/setupenv
Easily select toolchain between 64bit and 32 bit kernel builds for Android
#/bin/bash
#
# Download toolschains:
# git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7 toolchain
# git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b marshmallow-release toolchain64
#
# Instructions to set toolchain for build:
# source setupenv 64
case "$1" in

Reinstal OS

Here is a list of some libs, commands after OS installation.

  1. Before reinstall

Make USB

#!/bin/bash
# @(#) iptables.sh - Script for configuring firewall with iptables
# Based on: http://centossrv.com/
#
# Configuration part
#
##############################
## Set external interface
@xserveraws
xserveraws / nginx-rtmp.sh
Created February 2, 2023 00:48 — forked from mokoshalb/nginx-rtmp.sh
Installation guide for Nginx with RTMP module on Ubuntu Server
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git build-essential ffmpeg libpcre3 libpcre3-dev libssl-dev zlib1g-dev
git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git
wget https://nginx.org/download/nginx-1.18.0.tar.gz
tar -xf nginx-1.18.0.tar.gz
cd nginx-1.18.0
sudo ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module
make -j 1
sudo make install
@xserveraws
xserveraws / CaddyController.php
Created December 7, 2022 13:09 — forked from gilbitron/CaddyController.php
Enabling HTTPS (SSL) for Laravel Sail using Caddy
<?php
# app/Http/Controllers/CaddyController.php
namespace App\Http\Controllers;
use App\Store;
use Illuminate\Http\Request;
class CaddyController extends Controller
{