Skip to content

Instantly share code, notes, and snippets.

@imrodrigoalves
imrodrigoalves / resetWSLSpeeds.bat
Last active October 26, 2022 15:46
Allow WSL Fast Internet
@echo off
wsl exit
powershell -Command "Set-NetAdapterLso -Name 'vEthernet (WSL)' -IPv4Enabled $False -IPv6Enabled $False"
@oskar456
oskar456 / wgcf.py
Last active February 17, 2024 12:47
Cloudflare WARP linux client (using wg-quick for actual tunnel setup)
#!/usr/bin/env python3
import subprocess
import json
import os
from pathlib import Path
import requests
from requests.compat import urljoin
@ngobach
ngobach / 00_hackintosh.md
Last active November 3, 2019 17:20
Idiot's guide to hackintosh. https://git.io/vhwSM
@mcastelino
mcastelino / iptables-cheatsheet.md
Last active May 2, 2024 21:27
iptables-cheatsheet

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
@ngobach
ngobach / ubuntu_webserver.md
Last active May 6, 2016 09:09
Ubuntu 14.04 Web server installation

Make swap

sudo fallocate -l 3G /swapfile && \
sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile && \
sudo sh -c 'echo /swapfile   none    swap    sw    0   0 >> /etc/fstab' && \
sudo sh -c 'echo vm.swappiness=10 >> /etc/sysctl.conf' && \
sudo sh -c 'echo vm.vfs_cache_pressure = 50 >> /etc/sysctl.conf'
@wpivotto
wpivotto / gist:3993502
Created November 1, 2012 13:02
Maximize VMWare images performance
Insert the following code into the *.VMX file:
sched.mem.pshare.enable = "FALSE"
mainMem.useNamedFile = "FALSE"
prefvmx.minVmMemPct = "100"
prefvmx.useRecommendedLockedMemSize = "TRUE"
mainMem.partialLazySave = "FALSE"
mainMem.partialLazyRestore = "FALSE"
priority.grabbed = "high"
priority.ungrabbed = "normal"
@jxson
jxson / README.md
Created February 10, 2012 00:18
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation