cd my_project
git init .
git add . # add everything
git commit -m 'Initial commit'
... make some changes ...
# this original one uses values returned from 'brew info' | |
brew list --formula | xargs -n1 -P8 -I {} \ | |
sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \ | |
sort -h -r -k2 - | column -t | |
# faster alternative using 'du' | |
du -sch $(brew --cellar)/*/* | sed "s|$(brew --cellar)/\([^/]*\)/.*|\1|" | sort -k1h |
# Docker | |
alias d='docker' | |
alias da='docker attach' | |
alias dr='docker restart' | |
alias dimg='docker images' | |
alias dps='docker ps' | |
alias dvol='docker volume ls' | |
alias dclearimg='docker rmi $(docker images --quiet --filter "dangling=true")' | |
alias dclearps='docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v' | |
alias dclearvol='docker volume rm $(docker volume ls -qf dangling=true)' |
function ProviderComposer({ contexts, children }) { | |
return contexts.reduceRight( | |
(kids, parent) => | |
React.cloneElement(parent, { | |
children: kids, | |
}), | |
children | |
); | |
} |
{ | |
"_id":"booking", | |
"startUrl":[ | |
"https://www.booking.com/searchresults.html?aid=1508980&sid=ee7c661a3ec2420db360347075d64079&tmpl=searchresults&checkin_month=6&checkin_monthday=4&checkin_year=2019&checkout_month=6&checkout_monthday=7&checkout_year=2019&city=20015725&class_interval=1&dest_id=20015725&dest_type=city&from_sf=1&group_adults=2&group_children=0&label_click=undef&no_rooms=1&raw_dest_type=city&room1=A%2CA&sb_price_type=total&shw_aparth=1&slp_r_match=0&src=searchresults&srpvid=4f694ca313d60042&ss=San%20Diego&ssb=empty&ssne=San%20Diego&ssne_untouched=San%20Diego&nflt=pri%3D2%3B&rsf=" | |
], | |
"selectors":[ | |
{ | |
"id":"product listing", | |
"type":"SelectorElement", | |
"parentSelectors":[ |
Guidelines for upgrading the minimum PHP version requirements of packages and projects.
This isn't meant to be an exhaustive guide to upgrading, but as a checklist for the most important upgrades.
The first version to support namespaces - any relevant PHP packages/projects usually have this version as the minimum requirement, so this document won't concern itself with upgrades prior to that.
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
Shorcut | Action | Shortcut | Action | |
---|---|---|---|---|
1. ^⌥G | Google Search! | --- | 2. ⌥⌘K | Bookmark Line of Code! |
3. ⌥⌘L | Jump to Next Bookmark! | --- | 4. ⌥⌘J | Jump to Previous Bookmark! |
5. ⌥⌘P | Takes a CodeSnap! | --- | 6. ⌥⌘O | Opens settings.json file! |
7. ^⌥↑ | Fast Move Upwards! | --- | 8. ^⌥↓ | Fast Move Downwards! |
9. ⌥⌘C | Add CodeTour Step! | --- | 10. ^⌥↓ | Fast Move Downwards! |
{ | |
"$schema": "https://aka.ms/codetour-schema", | |
"title": "Legend", | |
"steps": [ | |
{ | |
"file": "pages/_app.js", | |
"description": "The loading indicator is here", | |
"line": 33, | |
"selection": { | |
"start": { |