Skip to content

Instantly share code, notes, and snippets.

View lfzawacki's full-sized avatar
๐Ÿ’ญ
Millennials just wanna have ๐Ÿฅ‘s

Lucas lfzawacki

๐Ÿ’ญ
Millennials just wanna have ๐Ÿฅ‘s
View GitHub Profile
# pretty sudo prompt
read -r -d '' SUDOPROMPT << EOM
๐ŸŒบ๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒท๐ŸŒธ๐ŸŒป๐ŸŒท๐ŸŒท๐ŸŒธ๐ŸŒธ๐ŸŒธ๐ŸŒธ๐ŸŒท๐ŸŒผ๐ŸŒท๐ŸŒณ๐ŸŒบ๐ŸŒผ๐ŸŒบ๐ŸŒธ๐ŸŒป๐ŸŒผ๐ŸŒผ๐ŸŒณ๐ŸŒณ๐ŸŒผ๐ŸŒบ๐ŸŒป๐ŸŒท๐Ÿ›๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒท๐ŸŒป๐ŸŒธ
๐ŸŒธ๐Ÿฆ‰๐ŸŒป๐ŸŒธ๐ŸŒณ๐ŸŒท๐ŸŒธ๐ŸŒท๐ŸŒธ๐ŸŒณ๐ŸŒธ๐ŸŒป๐ŸŒณ๐ŸŒ๐ŸŒป๐ŸŒท๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒบ๐ŸŒป๐ŸŒผ๐ŸŒป๐ŸŒป๐ŸŒผ๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒผ๐ŸŒณ๐ŸŒบ๐ŸŒณ๐ŸŒท๐ŸŒป๐ŸŒผ๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒธ
๐ŸŒณ๐ŸŒธ๐ŸŒป๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒบ๐ŸŒบ๐ŸŒป๐ŸŒบ๐ŸŒธ๐ŸŒป๐ŸŒท๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒป๐ŸŒป๐ŸŒท๐ŸŒณ๐ŸŒป๐ŸŒธ๐ŸŒณ๐ŸŒท๐ŸŒป๐ŸŒณ๐ŸŒณ๐ŸŒณ๐ŸŒณ๐ŸŒผ๐ŸŒณ๐ŸŒณ๐ŸŒบ๐ŸŒท๐ŸŒณ๐ŸŒบ๐ŸŒณ๐ŸŒบ
๐Ÿฆ‰๐ŸŒธ๐ŸŒป๐ŸŒบ๐ŸŒบ๐ŸŒณ๐ŸŒธ๐ŸŒธ๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒท๐ŸŒธ๐ŸŒณ๐ŸŒผ๐ŸŒบ๐ŸŒธ๐ŸŒบ๐ŸŒท๐ŸŒป๐ŸŒท๐ŸŒบ๐ŸŒบ๐ŸŒณ๐ŸŒท๐ŸŒท๐Ÿฐ๐ŸŒธ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒผ๐ŸŒท๐ŸŒผ๐ŸŒณ๐ŸŒท๐Ÿน๐ŸŒผ๐ŸŒบ
๐ŸŒท๐ŸŒณ๐ŸŒป๐ŸŒธ๐ŸŒธ๐ŸŒผ๐Ÿฐ๐ŸŒท๐ŸŒบ๐ŸŒท๐ŸŒบ๐ŸŒป๐ŸŒท๐ŸŒธ๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒป๐ŸŒท๐ŸŒป๐ŸŒป๐ŸŒบ๐ŸŒธ๐ŸŒธ๐ŸŒบ๐ŸŒป๐ŸŒธ๐ŸŒป๐ŸŒณ๐ŸŒณ๐ŸŒป๐Ÿฆ๐ŸŒป๐ŸŒผ๐ŸŒผ๐ŸŒป๐ŸŒป๐ŸŒบ๐ŸŒณ๐Ÿฐ
๐ŸŒผ๐Ÿฆ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒธ๐ŸŒณ๐ŸŒท๐ŸŒบ๐ŸŒผ๐ŸŒณ๐ŸŒท๐ŸŒธ๐ŸŒป๐ŸŒผ๐ŸŒป๐Ÿ›๐ŸŒป๐ŸŒผ๐ŸŒท๐ŸŒบ๐ŸŒผ๐ŸŒบ๐ŸŒธ๐ŸŒบ๐Ÿฆ”๐ŸŒท๐ŸŒธ๐ŸŒท๐ŸŒป๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒท๐ŸŒ๐ŸŒธ๐ŸŒท๐ŸŒผ๐ŸŒธ๐Ÿน
๐ŸŒธ๐ŸŒณ๐ŸŒป๐ŸŒผ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒบ๐ŸŒท๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒท๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒผ๐ŸŒณ๐ŸŒธ๐ŸŒป๐ŸŒป๐ŸŒธ๐ŸŒผ๐ŸŒผ๐ŸŒธ๐ŸŒณ๐ŸŒบ๐ŸŒป๐ŸŒป๐ŸŒณ๐ŸŒบ๐ŸŒท๐Ÿฐ๐ŸŒป๐ŸŒผ๐Ÿน๐ŸŒท๐ŸŒท๐ŸŒณ
๐ŸŒผ๐ŸŒท๐ŸŒป๐ŸŒธ๐ŸŒผ๐ŸŒณ๐ŸŒป๐ŸŒป๐ŸŒณ๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒบ๐ŸŒบ๐ŸŒบ๐ŸŒบ๐ŸŒณ๐ŸŒป๐ŸŒผ๐ŸŒท๐ŸŒธ๐ŸŒธ๐ŸŒป๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒบ๐ŸŒบ๐ŸŒผ๐ŸŒธ๐ŸŒบ๐ŸŒป๐ŸŒป๐ŸŒท๐ŸŒธ๐ŸŒป๐ŸŒท
@paulirish
paulirish / what-forces-layout.md
Last active August 15, 2025 09:34
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
@danburzo
danburzo / README.md
Last active July 29, 2021 08:41
Get all event listeners on the page in Google Chrome
@pklaus
pklaus / arduino-due_high-speed-ADC.ino
Last active September 3, 2024 05:45
Arduino Due: ADC โ†’ DMA โ†’ USB @ 1MSPS
#undef HID_ENABLED
// Arduino Due ADC->DMA->USB 1MSPS
// by stimmer
// from http://forum.arduino.cc/index.php?topic=137635.msg1136315#msg1136315
// Input: Analog in A0
// Output: Raw stream of uint16_t in range 0-4095 on Native USB Serial/ACM
// on linux, to stop the OS cooking your data:
// stty -F /dev/ttyACM0 raw -iexten -echo -echoe -echok -echoctl -echoke -onlcr
@davidwkeith
davidwkeith / index.html
Last active November 7, 2024 19:03
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom protocol handlers. Licensed under the WFTPL http://www.wtfpl.net/txt/copying/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!--
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom
protocol handlers.
@priithaamer
priithaamer / gist:1034070
Created June 19, 2011 11:01
Capistrano task to ask confirmation before deploying to production
task :ask_production_confirmation do
set(:confirmed) do
puts <<-WARN
========================================================================
WARNING: You're about to perform actions on production server(s)
Please confirm that all your intentions are kind and friendly
========================================================================
#!/usr/bin/env ruby
# Aside from removing Ruby on Rails specific code this is taken verbatim from
# mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome
# - Ryan Florence (http://ryanflorence.com)
#
# Install this hook to a remote repository with a working tree, when you push
# to it, this hook will reset the head so the files are updated
if ENV['GIT_DIR'] == '.'