Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jyane/bin
my bin
https://github.com/jyane/bin
Last synced: 23 days ago
JSON representation
my bin
- Host: GitHub
- URL: https://github.com/jyane/bin
- Owner: jyane
- Created: 2014-12-25T04:14:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-09-01T06:14:49.000Z (about 3 years ago)
- Last Synced: 2023-08-10T19:39:29.724Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bin
## jpb
```
~/bin] (shohei_kamimori@skamimori 2018-08-31 18:11:32)
-> echo 'hoge' | pbcopy
[~/bin] (shohei_kamimori@skamimori 2018-08-31 18:11:44)
-> jpb sed 's/o//g'
[~/bin] (shohei_kamimori@skamimori 2018-08-31 18:11:47)
-> pbpaste
hge
```## jswap
```
echo 'a b' | jswap # b a
```## jgit
Requirements: peco, jq### clone
Clone repository and add upstream (parent repository) automatically.``` sh
# set environment variables
# example
GITHUB_ME="jyane"
GITHUB_FQDN="github.com"
GITHUB_URL="https://${GITHUB_FQDN}"
GITHUB_API_URL="https://api.${GITHUB_FQDN}"# git clone https://github.com/jyane/bin
# cd ${HOME}/repos/github.com/jyane/bin
# git remote add upstream https://github.com/jyane/bin
jgit clone bin# git clone https://github.com/jyane/bin
# cd ${HOME}/repos/github.com/jyane/bin
# git remote add upstream https://github.com/grpc/grpc
jgit clone jyane/grpc
```### fpush
Upsteam safe force pushing.
Cannot push to master branch through this command.``` sh
# force push to current branch
# git push -f "origin" ${current_branch}
jgit fpush
```### sync
Pull upstream changes and push to origin.``` sh
jgit sync
```### pr
Fetch a pull request changes and checkout its pull request branch.```
jgit pr 42
```