Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am john20xdoe on github.
* I am arekkushisu (https://keybase.io/arekkushisu) on keybase.
* I have a public key ASCNBjvLqjSSqnZbsQAk7xphxLWUIzQVqWdoT9O_FzZodgo
To claim this, I am signing this object:
@john20xdoe
john20xdoe / scripts.psh
Last active August 4, 2019 02:54
Windows 10 script setups
# Make symbolic link for chocolatey default install
# cmd
mklink /D "C:\ProgramData\chocolatey" 'C:\ProgramData\chocolatey'
# powershell Admin
New-Item -ItemType SymbolicLink -Path "C:\ProgramData\chocolatey" -Target "D:\Bin\chocolatey"
@john20xdoe
john20xdoe / git_compression_commands.txt
Last active January 23, 2020 09:06
Git Repo Compression
$ git reflog expire --expire=1.minute refs/heads/master
$ git fsck --unreachable
$ git prune
$ git gc
Reference: http://www.newartisans.com/blog/2008/04/diving-into-git.html
Basically this removes all reflogs that are older than a minute for the master branch, finds and deletes any commits that aren’t being used, then does some general cleanup on the whole repository to further compress it. This could have had its own tip, but it’s probably better to illustrate a great use of the subject’s subcommands in your workflow.
-- http://gitready.com/intermediate/2009/02/09/reflog-your-safety-net.html
@john20xdoe
john20xdoe / S3-Static-Sites.md
Created May 19, 2021 05:18 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources

@john20xdoe
john20xdoe / readme
Created April 30, 2024 07:09
Ads hostnames to block using Cloudflare Zero Trust
adtago.s3.amazonaws.com
analyticsengine.s3.amazonaws.com
analytics.s3.amazonaws.com
advice-ads.s3.amazonaws.com
advertising-api-eu.amazon.com
pagead2.googlesyndication.com
adservice.google.com
pagead2.googleadservices.com
afs.googlesyndication.com
stats.g.doubleclick.net