Skip to content

Instantly share code, notes, and snippets.

View l3dlp's full-sized avatar
🎯
go+rust revives me ✔️

L3DLP l3dlp

🎯
go+rust revives me ✔️
View GitHub Profile
@l3dlp
l3dlp / chatgpt-coninue-bookmarklet.js
Created January 21, 2023 19:46
ChatGPT "Please continue..." Bookmarklet
javascript:e=document.querySelector("textarea");if(e){e.value = "please continue where you stopped";let t = e.nextElementSibling; if(t && t.tagName === "BUTTON") t.click()}
@l3dlp
l3dlp / index.html
Created October 24, 2022 17:30
qBKWGQX
<div
style="padding: 2rem; max-width: 800px; margin: auto; line-height: 1.5"
>
<main>
<h1 id="dark-theme">Dark theme</h1>
<p>This Uppload example uses a dark theme instead of a light theme.</p>
<p>
You can
<strong
><a
@l3dlp
l3dlp / SMBDIS.ASM
Created April 12, 2022 22:37 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
package main
import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
type job1 struct {
ID int `gorm:"primaryKey"`
UniqueField1 string
@l3dlp
l3dlp / example.html
Created May 17, 2019 17:03 — forked from kylebarrow/example.html
Prevent links in standalone web apps opening Mobile Safari
<!DOCTYPE html>
<head>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="http://google.com/">Remote Link (Google)</a></li>
@l3dlp
l3dlp / a-better-material-fab-menu-with-svg-and-gsap.markdown
Created May 4, 2019 21:59
A Better Material FAB Menu with SVG and GSAP

A Better Material FAB Menu with SVG and GSAP

I noticed loss of fidelity after completion of scale transforms in Safari on the iPad Mini. This MDL button element now contains an SVG circle and an SVG icon. The animation of the circle and menu is handled by TweenMax from GSAP.

A Pen by Daniel Kemper on CodePen.

License.

@l3dlp
l3dlp / ufw-config.sh
Created April 2, 2019 17:21
ufw basic configuration @medium.com/p/d39c5d2f3d7
apt install ufw
ufw default deny incoming
ufw default deny outgoing
ufw allow 22/tcp
ufw enable
ufw status verbose
@l3dlp
l3dlp / phpcheck
Last active November 29, 2018 09:46
“/bin/phpcheck“ - quickly check PHP syntax globally - “phpcheck -v“ = verbose mode
#!/bin/bash
if [ "$1" = "-v" ]; then
find . -name "*.php" -exec php -l {} \;
else
find . -name "*.php" -exec php -l {} \; | grep -v "No syntax errors detected in "
fi
@l3dlp
l3dlp / blokk-style-with-css.markdown
Created November 23, 2018 19:37
BLOKK STYLE WITH CSS