Skip to content

Instantly share code, notes, and snippets.

@brpaz
brpaz / config.yml
Created March 17, 2019 19:08
Sample config.yml for publishing to NPM from CircleCI
# 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
#
# 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
#
<script>
import gql from 'graphql-tag';
// GraphQL query
const postsQuery = gql`
query allPosts {
posts {
id
title
votes
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.
- 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
@brpaz
brpaz / chrome_extension_manifest_sample.json
Created January 31, 2015 11:46
Sample shortcut chrome extension #aws #chrome
{
"manifest_version": 2,
"name": "AWS Console",
"description": "Just a shortcut to AWS Management Console",
"version": "1.0",
"icons": {
"128": "icon-128.png"
},
"app": {
"urls": [
@vikbert
vikbert / awesome_people.md
Last active May 2, 2024 02:28
[awesome people] awesome people I like

Awesome People

Frontend Devs

ecmadao

from Beijing, focus on Javascript, ReactJS.

Backend Devs

@vikbert
vikbert / awesome_tools.md
Last active May 2, 2024 02:28
[awesome tools] all awesome tools I used for daily work

Awesome Tools

This is a collection of awesome tools, that I use for daily work.

PHPStorm Plugins

carbon-now-sh

convert code snippets to image: png, jpg

@vikbert
vikbert / vue.MD
Last active May 2, 2024 02:28
[vue] everything about vue

Beginning with Vue.js in 03.2019

open question

  • Vuex
  • Typescript
  • unit Testing
  • E2E test
  • Progresive Web App Support
@vikbert
vikbert / scripting.md
Last active May 2, 2024 02:28
[scripting] small scripting snippets #php #scripting

Rename files with preg_match and preg_replace

<?php

declare(strict_types = 1);

const PATTERN = '/(-m\d-[a-zA-Z]*-[0-9][0-9])/';

if (empty($argv[1])) {
 throw new Exception('Usage: php rename.php ');