node live-server.js [path]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# Bookmark manager for the fish shell | |
# Functions: | |
# - bmadd: Add a bookmark | |
# - bmrm: Remove bookmarks | |
# - bmls: List bookmarks | |
# - goto: Interactive navigation to bookmarks using fzf | |
# Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Log in to your Amazon account | |
// 2. Go to your Content Library > Books - https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/ | |
// 3. Open your browser's Javascript console | |
// 4. For each page of books, paste this script into the console | |
(async function () { | |
// Close the notification if it appears | |
function closeNotification() { | |
const notifClose = document.querySelector("span#notification-close"); | |
if (notifClose) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Test doc - PHP</title> | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script> | |
<style> | |
a,hr{color:inherit}progress,sub,sup{vertical-align:baseline}blockquote,body,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,menu,ol,p,pre,ul{margin:0}dialog,fieldset,legend,menu,ol,ul{padding:0}.relative,sub,sup{position:relative}.text-cosmic-800,.text-east-bay-500,.text-gray-200,.text-gray-300,.text-wby-400{--tw-text-opacity:1}.backdrop-blur-md,.backdrop-brightness-110{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.bg::after,.container{width:100%}*,::after,::before{box-sizing:border-box;border:0 solid #e5e7eb;--tw- |
A lot of people don't seem to realize the utility of the Google Chrome Custom Search Engine feature. Personally, I use it all the time every day. Want to search Wikipedia for Pokemon? Without lifting my fingers off the keyboard, I enter ⌘+L, then w Pokemon
and Enter and bang, I'm there!
Name | Keyword | Url |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
unz (){ | |
[ -z "$1" ] && echo "no file to unzip :|" && exit 1 | |
name="${1%.*}" | |
echo "----------------------" | |
echo "uncompress ----------- $1" | |
echo "----------------------" | |
unzip $1 -d $name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PMDR_WRK="25" | |
PMDR_BRK="5" | |
PMDR_LBRK="15" | |
# check command | |
if ! command -v lolcat &>/dev/null; then | |
echo "'lolcat' could not be found https://github.com/busyloop/lolcat" | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#... | |
# app/Mail/ResetPassword.php | |
#... | |
class GeneralMail extends Mailable{ | |
#... | |
public function build() | |
{ |
NewerOlder