Skip to content

Instantly share code, notes, and snippets.

@willurd
willurd / web-servers.md
Last active June 21, 2024 13:36
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@denji
denji / nginx-tuning.md
Last active June 21, 2024 15:08
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@valdergallo
valdergallo / noSleep.vbs
Last active February 22, 2024 13:59
Script to make windows stop to sleep using VBscript
set wsc = CreateObject("WScript.Shell")
Do
'Five minutes
WScript.Sleep(5*60*1000)
wsc.SendKeys("{NUMLOCK}")
Loop
@alirobe
alirobe / reclaimWindows10.ps1
Last active June 7, 2024 16:24
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@windyinsc
windyinsc / createinstallmedia.md
Last active February 11, 2024 10:16
Create a bootable installer for macOS

Create a bootable installer for macOS

The following instructions were predominantly sourced via this Apple Support Document.

With macOS, you can use a USB flash drive or other removable media as a startup disk from which to install macOS. These advanced steps are intended primarly for system administrators and others who are familiar with the command line.

The final executable command(s) are found within Section III. Final macOS Executable Commands labled as Full Example or Full Example w/Options. I personally use the w/Options command which include both the --nointeraction and &&say Installation commands.

I. Overview

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active June 17, 2024 04:00 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@sidneys
sidneys / de.sidneys.adblock-plus.facebook.seen.txt
Last active October 26, 2020 03:31
Adblock Plus | Facebook & Messenger.com "Seen" Blocker
[Adblock Plus 2.0]
! Title: sidneys.github.io | Facebook & Messenger.com "Seen" Blocker
! Version: 1
! Expires: 1 hour
! Homepage: https://sidneys.github.io
!
||facebook.com/ajax/mercury/change_read_status.php$xmlhttprequest
||messenger.com/ajax/mercury/change_read_status.php$xmlhttprequest
https://www.facebook.com/ajax/mercury/change_read_status.php
https://www.messenger.com/ajax/mercury/change_read_status.php
@sidneys
sidneys / de.sidneys.adblock-plus.facebook.typing.txt
Last active May 30, 2020 03:25
Adblock Plus | Facebook & Messenger.com "Typing" Blocker
[Adblock Plus 2.0]
! Title: sidneys.github.io | Facebook & Messenger.com "Typing" Blocker
! Version: 1
! Expires: 1 hour
! Homepage: https://sidneys.github.io
!
https://www.facebook.com/ajax/messaging/typ.php
https://www.messenger.com/ajax/messaging/typ.php
@sidneys
sidneys / de.sidneys.adblock-plus.facebook.online.txt
Last active May 30, 2020 03:25
Adblock Plus | Facebook & Messenger.com "Online" Blocker
[Adblock Plus 2.0]
! Title: sidneys.github.io | Facebook & Messenger.com "Online" Blocker
! Version: 1
! Expires: 1 hour
! Homepage: https://sidneys.github.io
!
https://*edge-chat.facebook.com
https://*edge-chat.messenger.com
https://www.facebook.com/ajax/bz
https://www.messenger.com/ajax/bz