Skip to content

Instantly share code, notes, and snippets.

View iamdanre's full-sized avatar

danré iamdanre

View GitHub Profile
@iamdanre
iamdanre / index.php
Last active August 19, 2024 04:01
MAMP index file, shows sites, mongoDB status, Mailpit status and phpInfo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>localhost</title>
<style>
body {
-webkit-font-smoothing: antialiased;
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
background: #121212
}
@iamdanre
iamdanre / mampsql.sh
Last active August 10, 2024 21:14
run MAMP's MySQL server as a daemon with Raycast 🚀
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Mamp SQL Server
# @raycast.mode compact
# @raycast.argument1 { "type": "dropdown", "placeholder": "Start/Stop/Status", "data": [{"title": "Start", "value": "start"}, {"title": "Stop", "value": "stop"}, {"title": "Status", "value": "status"}] }
# Optional parameters:
# @raycast.icon 🐘
/*
<input type="file" multiple class="my-image-field" />
<div class="row">
<div class="col-md-6">
<h2>Before</h2>
<img src="" id="before" alt="Before" />
</div>
<div class="col-md-6">
<h2>After</h2>
<img src="" id="after" alt="After" />
@iamdanre
iamdanre / fixSafariExtentions.sh
Last active November 29, 2022 05:01
fix macOS Extensions
#!/bin/zsh
killall Safari && /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f -R /Applications/Safari.app;
var odmcss = `
:root {
filter: invert(90%) hue-rotate(180deg) brightness(100%) contrast(100%);
background: #fff;
}
iframe, img, image, video, [style*="background-image"] {
filter: invert() hue-rotate(180deg) brightness(105%) contrast(105%);
}
`;
@iamdanre
iamdanre / Chromium Mobile Device List
Created October 29, 2022 08:34 — forked from devinmancuso/Chromium Mobile Device List
Mobile Device Emulation List from Chromium
#Pulled from Chromium at: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/devtools/front_end/toolbox/OverridesUI.js&q=WebInspector.OverridesUI._phones%20file:OverridesUI.js&sq=package:chromium&type=cs&l=310
#Phones
Define_phones = [
{deviceName: "Apple iPhone 3GS", width: 320, height: 480, deviceScaleFactor: 1, userAgent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5", touch: true, mobile: true},
{deviceName: "Apple iPhone 4", width: 320, height: 480, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5", touch: true, mobile: true},
{deviceName: "Apple iPhone 5", width: 320, height: 568, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Versi
@iamdanre
iamdanre / mac_cli.md
Created July 12, 2022 19:58
dank mac defaults

Awesome macOS Command Line

A curated list of shell commands and tools specific to macOS.

“You don’t have to know everything. You simply need to know where to find it when necessary.” (John Brunner)

Awesome

If you want to contribute, you are highly encouraged to do so. Please read the

@iamdanre
iamdanre / AdbCommands
Created July 12, 2022 02:13 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
defaults read > defaults.pre.txt
# *make a change in Settings*
defaults read > defaults.post.txt
diff defaults.pre.txt defaults.post.txt