Skip to content

Instantly share code, notes, and snippets.

View timhok's full-sized avatar
💭
           ‎

timhok

💭
           ‎
View GitHub Profile
@hamid-rostami
hamid-rostami / README.md
Last active January 15, 2026 13:36
wireguard over TCP

To pass wireguard's traffic through a TCP tunnel by using udp2raw

Requirements

For Arch linux, install udp2raw by pacman: pacman -S udp2raw

For Debian or Ubuntu, you can use a binary release from: https://github.com/wangyu-/udp2raw/releases

@wonderstory
wonderstory / _Flask_.md
Created June 1, 2017 06:09
Flask-uWSGI-nginx on CentOS 7

Small sample of Flask app with uWSGI and nginx on CentOS 7

(Replace example.com, /PATH/TO/CONTENT, APPNAME and USERNAME with yours.)

operations

nginx

$ sudo tee /etc/yum.repos.d/nginx.repo << 'EOF' > /dev/null

[nginx]

@jbnunn
jbnunn / Gist
Last active April 6, 2021 16:38 — forked from kurokikaze/gist:350fe1713591641b3b42
Install Google Chrome from Powershell
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)
@0xDE57
0xDE57 / config.md
Last active October 24, 2025 12:09
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable. I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

&#000000;&#8194;&#8194;&#8194; &#000000;&#000000;&#000000;
&#000000;&#8194;&#8194;&#8194; &#000000;
&#000000;&#000000; &#000000;&#000000;&#000000;
&#8194; &#8194;&#8194; &#8194;&#8194; &#000000;&#8194;&#8194;&#8194; &#000000;
&#000000; &#000000;&#000000;&#8194;&#8194;&#8194; &#000000;
@akkez
akkez / photosTransfer.js
Last active January 2, 2016 07:08
Script which helps to transfer all photos from one album to another in VK.
var user_id = 0;
var from_album = 0;
var to_album = 0;
var photos = API.photos.get({album_id: from_album})[email protected];
var i = 0;
var result = [];
while (i < photos.length) {
result = result + API.photos.move({