Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vielhuber/gists
📝 All my public gists. 📝
https://github.com/vielhuber/gists
gists
Last synced: 19 days ago
JSON representation
📝 All my public gists. 📝
- Host: GitHub
- URL: https://github.com/vielhuber/gists
- Owner: vielhuber
- Created: 2019-09-29T22:30:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T22:05:56.000Z (2 months ago)
- Last Synced: 2024-10-24T10:53:29.846Z (2 months ago)
- Topics: gists
- Language: PHP
- Homepage:
- Size: 2.45 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# 📝 gists 📝
this is a synced repo of all public github gists.
the two main purposes are backup and activity signals on the main github account.
you can use this script also for your own purposes.
### installation
```bash
mkdir gists
cd gists
# make a fresh repo on github and clone it
git clone https://github.com/foo/bar .
# fetch the sync script
wget https://github.com/vielhuber/gists/archive/master.zip .
unzip master.zip -d .
cp -r ./gists-master/* .
cp .env.example .env
# edit your personal access token with the scope "gist" which can be obtained here:
# https://github.com/settings/tokens/new
nano .env
rm -rf gists-master gists README.MD master.zip .env.example
composer install
```### usage (manually or via cron)
```bash
git pull
php _sync.php
git add -A .
git commit -m "last update on `date +'%Y-%m-%d'`"
git push origin HEAD
```