Discover gists
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
#!/bin/bash | |
# Bash shell script for generating self-signed certs. Run this in a folder, as it | |
# generates a few files. Large portions of this script were taken from the | |
# following artcile: | |
# | |
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html | |
# | |
# Additional alterations by: Brad Landers | |
# Date: 2012-01-27 |
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
import { shallowMount } from '@vue/test-utils'; | |
import HelloWorld from '@/components/HelloWorld.vue'; | |
describe('HelloWorld.vue', () => { | |
it('renders props.msg when passed', () => { | |
const msg = 'new message'; | |
const wrapper = shallowMount(HelloWorld, { | |
propsData: { msg }, | |
}); | |
expect(wrapper.text()).toMatch(msg); |
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
# Javascript Node CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | |
# | |
version: 2.1 | |
defaults: &defaults | |
working_directory: ~/repo | |
docker: | |
- image: circleci/node |
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
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | |
# | |
# Custom headers and headers various browsers *should* be OK with but aren't | |
# |
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
<script> | |
import gql from 'graphql-tag'; | |
// GraphQL query | |
const postsQuery = gql` | |
query allPosts { | |
posts { | |
id | |
title | |
votes |
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
describe('Post Resource', function() { | |
it('Creating a New Post', function() { | |
cy.visit('/posts/new') // 1. | |
cy.get('input.post-title') // 2. | |
.type('My First Post') // 3. | |
cy.get('input.post-body') // 4. | |
.type('Hello, world!') // 5. |
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: Jetbrains Toolbox | |
unarchive: | |
src: https://download.jetbrains.com/toolbox/jetbrains-toolbox-{{ jetbrains_toolbox_version }}.tar.gz | |
remote_src: true | |
dest: "{{ bin_dir }}" | |
extra_opts: [--strip-components=1] | |
mode: a+x | |
become: true | |
- name: Jetbrains Toolbox | Install Desktop file |
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
{ | |
"manifest_version": 2, | |
"name": "AWS Console", | |
"description": "Just a shortcut to AWS Management Console", | |
"version": "1.0", | |
"icons": { | |
"128": "icon-128.png" | |
}, | |
"app": { | |
"urls": [ |
NewerOlder