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
fish_add_path /opt/homebrew/bin | |
alias ls='exa -al --color=always --group-directories-first --icons' # preferred listing | |
alias la='exa -a --color=always --group-directories-first --icons' # all files and dirs | |
alias l='exa -ahl --color=always --group-directories-first --icons' # long format | |
alias ll='exa -ahl --color=always --group-directories-first --icons' # long format | |
alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing | |
alias l.="exa -a | egrep '^\.'" # show only dotfiles | |
alias ..='cd ..' |
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
function ghcs --description 'Wrapper around `gh copilot suggest` to suggest a command based on a natural language description of the desired output effort. Supports executing suggested commands if applicable.' | |
# Check if any arguments were provided | |
if not set -q argv[1] | |
echo "Please provide a description of the desired output." | |
return 1 | |
end | |
# Combine all arguments into a single query string | |
set -l query (string join " " $argv) |
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
function ghce --description 'Wrapper around `gh copilot explain` to explain a given input command in natural language.' | |
set -l GH_DEBUG "$GH_DEBUG" | |
for arg in $argv | |
switch $arg | |
case '-d' '--debug' | |
set GH_DEBUG 'api' | |
case '-h' '--help' | |
echo "USAGE | |
ghce [flags] <command> |
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
git clone --mirror OLD_GIT_URL | |
git remote add neworigin NEW_GIT_URL | |
git push neworigin --mirror |
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
add_filter('acf/fields/relationship/result', 'acf_append_edit_link_to_relationship_results', 10, 4); | |
function acf_append_edit_link_to_relationship_results($title, $post, $field, $post_id) { | |
$title = sprintf('[<a href="%s" target="_blank">%s</a>] ', get_edit_post_link($post_id), __('Edit')) . $title; | |
return $title; | |
} |
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
<select> | |
<option value="AF">Afghanistan</option> | |
<option value="AX">Åland Islands</option> | |
<option value="AL">Albania</option> | |
<option value="DZ">Algeria</option> | |
<option value="AS">American Samoa</option> | |
<option value="AD">Andorra</option> | |
<option value="AO">Angola</option> | |
<option value="AI">Anguilla</option> | |
<option value="AQ">Antarctica</option> |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Snap For Magic - Enter Us a Snap!</title> | |
<style type="text/css"> | |
body, html | |
{ | |
margin: 0; padding: 0; height: 100%; overflow: hidden; | |
} |
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
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "Recipe", | |
"author": "Shellys", | |
"cookTime": "PT20M", **** 20M means 20minutes **** | |
"prepTime": "PT30M", | |
"recipeYield": "<#> servings", **** for http://www.shellys.co.in/recipe/khichuri/ - 2 servings **** | |
"datePublished": "2015-05-18", **** Date recipe page was modified **** | |
"description": "Your recipe description goes here", **** Recipe Description **** |
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
wget --recursive --level=inf --page-requisites --convert-links robots=off --adjust-extension --span-hosts --domains=www.campbellsoup.ca,campbellsoup.ca,campbells-soup-362252ef.s3.amazonaws.com http://campbellsoup.ca | |
Reference links: | |
https://superuser.com/questions/129085/make-wget-download-page-resources-on-a-different-domain | |
https://stackoverflow.com/questions/4602153/how-do-i-use-wget-to-download-all-images-into-a-single-folder |
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
<div id="unsupportedBrowserMsg" style="border:2px solid red;background-color:white;opacity:0.7;margin-bottom:20px;"> | |
<h3 style="color:red;font-weight: bold;">*** IMPORTANT ***</h3> | |
<p style="color:red;">Your browser is not supported. You must use a newer browser which is 64bit or supports WebGL.</p> | |
<p><a href="https://interplay.zendesk.com/hc/en-us/articles/115009103987-Technical-Specs-and-Hardware-Requirements" style="color:red;text-decoration: underline;" target="_blank">Review Technical Specifications & Hardware Specs</a></p> | |
<p style="color:red;">You may proceed at your own risk. Please note that Technical Support will not be available.</p> | |
</div> |
NewerOlder