Ever needed to do a lot of work across lots of your github repos or simply back your repos up? It’s couldn’t be easier!
gem install github-backup
Replace johnmclear with your github username.
Travis-CI can auto “npm publish” your git repo to npmjs, this means that whenever you commit to your github repository your software is always updated and available to users via npm update. This should also work with pull requests so no need to jump onto CLI After a merge, just hit merge and after a few minutes / hours you should see your application updated on npmjs.
Create Travis-CI account, ideally signing in with your github account.
Find the repository you want to auto publish on the Travis Web interface (under your profile) and click Enable.
Install Ruby Gems
sudo apt-get install rubygems
Install travis CLI gem and json gem
sudo gem install json
gem install travis
Create a .travis.yml file in the root of your repository that looks like this (replacing your email)
language: node_js deploy: api_key: email: email@example.com provider: npm
Get your npmjs api key and copy it into the clip board (Copy the bit after the _auth =)
cat ~/.npmrc | grep _auth
Run the Travis CI secret key generator
travis encrypt --add deploy.api_key
When prompted paste your APIKey then hit Control D, don’t add an additional line break or enter.
Add, Commit and Push the new .travis.yml file, this will trigger a build on Travis
git add .travis.yml && git commit -m "Travis auto publish config" && git push
Head over to your Travis page and wait for your build to begin, if it doesn’t it’s likely you didn’t push correctly up to github.
Doing lots of packages?
You will only need to complete steps 5 to 9 on future packages (assuming you enabled them on travis)
Every now and again I write about some good stuff, here is my latest good stuff.
I use whiteboard paint in my office, I have written about it before, it’s still really useful. I specifically use Rust-Oleum Dry Erase Whiteboard Paint, you can buy it online or at homebase in the UK.
Nokia 925 & Huwaei ascend
It’s kinda shocking Microsoft get a product in my “good stuff” list but it’s not the operating system that makes the 925 a useful phone, it’s purely the hardware. Putting Android on a 925 would by far make it the best phone on the market. The Huweai ascend is my daily driver, it’s a great phone all round.
SDR Kits Spectrum analyzer
Not for everyone.. I use spectrum analyzers to anaylze the frequency of some electronics components I work with, the SDR-Kits one I’m using is way below the price of most on the market but does a great job.
DT 770 Pros
Oomlout isn’t actually stuff, it’s a place, an experience and a part of any good journey. Oomlout is technically speaking a warehouse full of electronics and bits for hackers and makers, if this sounds like you, you should visit.
Digital door lock and key
So I’m kinda bias here but really, having the digital door lock and using the NFC Ring to unlock it has been useful, it’s not like it’s a gimmick any more, it’s part of my daily life and I’m safer and less inconvenienced now than I was before, I guess that is the intention of any invention and this one ticks the boxes.
For funsies and putting on t’web to register trademark should I need it..
Fancy stuff needs crests / coat of arms..
Just a rough mock up anyway, using it in a project where it will be printed on a tiny surface at nano scale so doesn’t need to be pixel perfect..
- Get all your github repos
- Publishing to Npm on Git commit using Github Hooks and Travis
- Some good stuff
- McLear Crest / Coat of Arms V1
- I’m doing a webinar about wearable technology
- Ring Sizes And You – A hackers approach to making rings fit on your finger
- Laser cut wood and airport security
- NFC Ring in numbers so far
- After a year of hard work my kickstarter is live!