Skip to content

Instantly share code, notes, and snippets.

@ctur
ctur / Making Apple Developer certificates on Linux
Created October 23, 2019 15:53 — forked from boodle/Making Apple Developer certificates on Linux.md
Making Apple Developer certificates on Linux
1. Create a new directory;
mkdir Apple\ Enterprise
cd Apple\ Enterprise
2. Generate a certificate signing request
openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
3. With the information like so (ensure you give it a password):
Country Name (2 letter code) [AU]:GB
State or Province Name (full name) [Some-State]:London
@ctur
ctur / index.js
Last active July 30, 2019 21:35
Single GraphQL Server
import { GraphQLServer } from 'graphql-yoga'
// babel-node index.js
// "babel-cli": "^6.26.0",
// "babel-preset-env": "^1.7.0",
// "graphql-yoga": "^1.18.1"
@ctur
ctur / launch.json
Created July 30, 2019 20:56
Vs Code - Babel Debugger for Node
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Babel Debug",
@ctur
ctur / createIndexImage.sh
Last active June 24, 2019 13:27
Creates js file with exports of each .png file in current folder (index.js generator) - chmod +x createIndexImage.sh - ./createIndexImage.sh
#!/bin/bash
for f in $(find . -iname "*.png" -type f)
do
echo "export { default as $(basename ${f%.*}) } from './$(basename ${f})'" >> index.js
done
@ctur
ctur / 0_reuse_code.js
Created August 22, 2017 18:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console