Skip to content

Instantly share code, notes, and snippets.

View gnoxr's full-sized avatar
🏳️‍🌈
gaaaay

GnoxR gnoxr

🏳️‍🌈
gaaaay
  • France
View GitHub Profile
@malarkey
malarkey / Contract Killer 3.md
Last active May 24, 2024 23:38
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………

@plentz
plentz / nginx.conf
Last active July 2, 2024 13:20
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active June 16, 2024 13:44
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active June 28, 2024 10:38
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@paulirish
paulirish / what-forces-layout.md
Last active July 2, 2024 13:24
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@rakiru
rakiru / antiscrollfuck-filters.txt
Last active June 30, 2017 21:38
AntiScrollFuck - Block scripts that mess with native scrolling. Add https://gist.githubusercontent.com/rakiru/8b478c87ccf5926f4dbe2f2d3a191cf4/raw to your adblocker
! Title: AntiScrollFuck
! Version: 1.3
! Homepage: https://gist.github.com/rakiru/8b478c87ccf5926f4dbe2f2d3a191cf4
! Redirect: https://gist.githubusercontent.com/rakiru/8b478c87ccf5926f4dbe2f2d3a191cf4/raw
! Block scripts that mess with native scrolling.
! https://github.com/inuyaksa/jquery.nicescroll
*/jquery.nicescroll.js$script
*/jquery.nicescroll.min.js$script
*/jquery.nicescroll.plus.js$script