JFS_BASE=/Users/yujunz/JuiceFS
JFS_NAME=rogerz-s3-cn-east-1-qiniu
BUNDLE=TimeMachine.sparsebundle
VOLUME=/Volumes/TimeMachine
# Mount JuiceFS
juicefs mount --cache-dir $JUICEFS_BASE/cache --batch 10 --writeback --metacache --opencache $JFS_NAME $JFS_BASE/$JFS_NAME
# Create sparse bundle
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
| #!/usr/bin/env bash | |
| read -r -d '' usage << EOM | |
| Usage: | |
| gh-deploy-clone user/repo [ENVIRONMENT] | |
| EOM | |
| [ -z "$1" ] && echo && echo "$usage" && echo && exit 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
| { | |
| "5694": 2164, | |
| "184945": 1028, | |
| "185011": 2165, | |
| "185028": 800, | |
| "198432": 2166, | |
| "200180": 1029, | |
| "440221": 662, | |
| "993598": 774, | |
| "1048782": 2167, |
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\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| class GoogleDriveServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Bootstrap the application services. |
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\Observers; | |
| use Illuminate\Database\Eloquent\Model; | |
| class RedirectObserver | |
| { | |
| const REDIRECTS = [ | |
| \Modules\Shop\Entities\Product::class => [ |
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\Parsers; | |
| class DentalinfoComUaParser extends Parser { | |
| use SearchResultsOnlyLinks; | |
| protected $searchUrlTemplate = 'http://dentalinfo.com.ua/site/search?q={search}'; | |
| // смысл селекторов отличается из-за SearchResultsOnlyLinks |
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
| mime { | |
| .atom application/atom+xml | |
| .json application/json | |
| .map application/json | |
| .topojson application/json | |
| .jsonld application/ld+json | |
| .rss application/rss+xml | |
| .geojson application/vnd.geo+json | |
| .rdf application/xml | |
| .xml application/xml |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule