This file contains 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
{ | |
"rows": [ | |
{ "name": "Afghanistan", "code": "AF" }, | |
{ "name": "Åland Islands", "code": "AX" }, | |
{ "name": "Albania", "code": "AL" }, | |
{ "name": "Algeria", "code": "DZ" }, | |
{ "name": "American Samoa", "code": "AS" }, | |
{ "name": "AndorrA", "code": "AD" }, | |
{ "name": "Angola", "code": "AO" }, | |
{ "name": "Anguilla", "code": "AI" }, |
This file contains 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
ps -ef | grep defunct | grep -v grep | cut -b8-20 | xargs sudo kill -9 |
This file contains 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
/** | |
* # Instructions | |
* Run `BUGSNAG_KEY=vnjekfnvjkfeve APP_VERSION=1.0.0 PUBLIC_URL=https://example.com node upload_sourcemaps.js` | |
* to upload all sources to Bugsnag. This is very useful if your source is behind a firewall and Bugnsag can't access it | |
*/ | |
const path = require("path"); | |
const upload = require("bugsnag-sourcemaps").upload; | |
const walkSync = require("walk-sync"); |
This file contains 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
# Copy backup file to Docker Container | |
# Remember to name your container with the --name parameter on docker start, so you can | |
# replace the SQL_Server name on the following command. | |
# Remember also to change the backup file path. | |
docker cp ~/database.bak SQL_Server:/var/opt/mssql/data/ |
This file contains 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 page = (await browser.pages())[0]; |
This file contains 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
name: Visual Testing | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- reopened |
This file contains 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
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d |
This file contains 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
name: Deploy Functions | |
trigger: | |
- main | |
variables: | |
- group: Pulumi | |
- name: npm_config_cache | |
value: $(Pipeline.Workspace)/.npm | |
pool: |
This file contains 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
export const queryStringSerialize = (obj, prefix) => { | |
var str = [], | |
p; | |
for (p in obj) { | |
if (obj.hasOwnProperty(p)) { | |
var key = isNaN(parseInt(p, 10)) ? p : ""; | |
var k = prefix ? prefix + "[" + key + "]" : p; | |
var v = obj[p]; | |
str.push( | |
v !== null && typeof v === "object" |
OlderNewer