Dashing widget to display plan build details from your Bamboo instance.
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
| // Use this where you want to see some object/state printed on screen | |
| (whatever) => (<pre>{JSON.stringify(whatever, null, 2)}</pre>) |
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
| const request = require('superagent'); | |
| var parser = require('fast-xml-parser'); | |
| var Json2xml = require("fast-xml-parser").j2xParser; | |
| const json2xml = new Json2xml(); | |
| async function getCredits() { | |
| const response = await request | |
| .get('https://api.textmarketer.co.uk/services/rest/credits?username=x&password=x') | |
| .buffer() | |
| .type('xml') |
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
| /* | |
| Annotated version of example from: https://developers.messagebird.com/api/sms-messaging#send-outbound-sms | |
| */ | |
| // There's a node SDK we can use: https://github.com/messagebird/messagebird-nodejs | |
| var messagebird = require('messagebird')('API Key'); // API key from https://dashboard.messagebird.com/en/developers/access | |
| messagebird.messages.create({ | |
| originator : '+441234567890', // Needs to be the one set up for the account |
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
| /* | |
| Script to take a Remembear password export and turn it into a CSV 1Password will understand. | |
| Tested with 1Password 7 and Remembear 1.4.2. | |
| Note that Remembear makes a mess of the CSV export if you have any multi-line notes. | |
| If you have any of these you'll need to clean those up in the exported CSV before running this script. | |
| It's also not great at marking things in the trash so maybe clear your Remembear trash before exporting. | |
| To run (assumes remembear_export.csv is in the same folder): |
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
| #!/bin/sh | |
| adb pull /sdcard/DCIM/Camera . |
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
| # Add this line to your ~/.bash_profile | |
| alias please=": &&" | |
| # Examples: | |
| please npm install | |
| please tail -f *.log | |
| please docker help | |
| # A more polite coding experience |
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
| # create a packages.yml file | |
| # if you already use homebrew, brewpack will include your installed formulae | |
| brewpack init | |
| # install something new | |
| brewpack install --save git | |
| brewpack install --save --cask google-chrome | |
| # joined a new team? get the stuff you need | |
| brewpack install --repo example-company/funteam |
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
| const MyComponent = ({ name }) => (<div> | |
| <h1>Some title</h1> | |
| <div>Hello {name}</div> | |
| </div> | |
| ); | |
| // Somewhere else | |
| <div> | |
| <MyComponent name={firstName + Surname} /> |
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
| #!/bin/sh | |
| bundle exec rackup -s puma -p 3030 |
NewerOlder
