This file contains hidden or 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>Coming Soon</title> | |
</head> | |
<body class="bg-gradient-to-br from-blue-600 via-indigo-700 to-purple-800 text-white min-h-screen flex items-center justify-center"> | |
<div class="text-center px-6"> |
This file contains hidden or 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 | |
# | |
# Change default editor | |
# | |
function set-editor() { | |
# Get your editor id by this | |
# osascript -e 'id of app "Visual Studio Code"' | |
EDITOR_ID="dev.zed.Zed" |
This file contains hidden or 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
const docsHtml = `<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Meta Parser API</title> | |
<style> | |
body { font-family: system-ui, sans-serif; padding: 2rem; background: #f8f9fa; color: #333; } | |
code { background: #eee; padding: 2px 5px; border-radius: 4px; } | |
pre { background: #f1f1f1; padding: 1rem; border-radius: 6px; } | |
</style> |
This file contains hidden or 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 | |
# file: .bookmark | |
# Bookmark storage file | |
BOOKMARKS_FILE="$HOME/.folder_bookmarks" | |
# Save current directory with a name | |
bookmark() { | |
local name="$1" |
This file contains hidden or 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 | |
# Colors for output | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
# Function to update and upgrade system | |
update_system() { | |
echo -e "${GREEN}Updating and upgrading the system...${NC}" | |
sudo apt update -y && sudo apt upgrade -y |
This file contains hidden or 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
# SETUP # | |
DOMAIN=example.com | |
PROJECT_REPO="[email protected]:example.com/app.git" | |
AMOUNT_KEEP_RELEASES=5 | |
RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
RELEASES_DIRECTORY=~/$DOMAIN/releases | |
DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
# stop script on error signal (-e) and undefined variables (-u) |
This file contains hidden or 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
/*! | |
* Emoji Cursor.js | |
* - 90's cursors collection | |
* -- https://github.com/tholman/90s-cursor-effects | |
* -- https://codepen.io/tholman/full/rxJpdQ | |
*/ | |
(function emojiCursor() { | |
var possibleEmoji = ["๐", "๐", "๐", "๐"] |
This file contains hidden or 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
import React, { useRef } from "react" | |
import { createPortal } from "react-dom" | |
export const IFrame = ({ | |
children, | |
title, | |
...props | |
}: HTMLAttributes<HTMLIFrameElement> & { | |
children: React.ReactNode | |
}) => { |
This file contains hidden or 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 | |
use Illuminate\Foundation\Inspiring; | |
use Illuminate\Support\Facades\Artisan; | |
use Illuminate\Support\Facades\DB; | |
// inspire with random qoutes | |
Artisan::command('inspire', function () { | |
$this->comment(Inspiring::quote()); | |
})->purpose('Display an inspiring quote'); |
This file contains hidden or 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 | |
namespace App\Helpers; | |
class DataHelper implements \ArrayAccess | |
{ | |
/** | |
* Where the data is stored | |
* | |
* @var array |
NewerOlder