Skip to content

Instantly share code, notes, and snippets.

import * as cdk from '@aws-cdk/core';
import { Service, Source, GitHubConnection, ConfigurationSourceType, Runtime } from '../lib';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'integ-apprunner');
// Scenario 4: Create the service from Github. Make sure you specify a valid connection ARN.
const connectionArn = process.env.CONNECTION_ARN || 'MOCK';
const service4 = new Service(stack, 'Service4', {
<!--
based on Neil Browns generator here: https://github.com/neilzone/ofcom_drama_range_phone_number_generator/blob/master/index.php
-->
<!DOCTYPE html>
<html>
<head>
<title>Ofcom number generator</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
const zeros = (i) => {
let result = '';
for (var x=0; x<i; x++) {
result = result+'0'
}
return result
}
const inner = (numZero) => (str) => {
if (str === undefined) {
@kkarimi
kkarimi / Recommendations.md
Created January 8, 2020 11:50 — forked from nimrodsun/Recommendations.md
Agile, Lean & DevOps - Recommendations

This is a reading list that I used to keep on my laptop, so I could recommend books I'd read to people who were interested. Putting it online makes it easier to share and harder to lose (hopefully!).

I have a healthy backlog of books to read, but I'm always interested in new recommendations. Let me know if you find any of this useful.

Topic Fundamentals Intermediate Advanced
Leadership [The Phoenix Project](https://www.amazon.co.uk/Phoenix-Project-DevOps-Helping-Business
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
nvm install 12
nvm use 12
nvm alias default 12
npm install -g npm
npm i -g yarn
yarn global add yarn
npm rm -g yarn
yarn global add npm
npm rm -g npm
Ctrl+Shift+X - Toggle between showing all terminals and only showing the current
one.
Ctrl+Shift+O - Split terminals Horizontally.
Ctrl+Shift+E - Split terminals Vertically.
Ctrl+Shift+Right - Move parent dragbar Right.
Ctrl+Shift+Left - Move parent dragbar Left.
## Useful Commands
Get kubectl version
kubectl version
Get cluster info:
#!/usr/bin/env bash
# Install Nginx with fast-cgi support.
# Author: @claxch
# Warning: PROJECT_NAME, DOMAIN, SSL must be set as env variables.
# OS: deb
[ ! $EUID -eq 0 ] && echo 'Not root.' && exit
[[ \
-z `env | grep -oE PROJECT_NAME=` || -z $PROJECT_NAME || \
@kkarimi
kkarimi / Lesson3.md
Last active January 21, 2017 11:20

React Session #3

  • Review: Load API in to state
  • Good practices:
    • uses container / parent components
  • React-Router: Basics
  • Eco-system: Webpack/babel
  • Uni-directional flow: Intro to Redux
  • Mention React Native / Electron
  • Unit testing
  • testing components - Jest?
function displayOrganisations(organisation) {
document.getElementById('pp').innerHTML += '<br />' + organisation + '<br />';
}
function getAreaServices(areaName) {
var http = new XMLHttpRequest;
http.open('GET', "https://code-your-future.github.io/api-demo/area/" + areaName + "/index.json");
http.onreadystatechange = function() {
if (this.readyState === 4 && this.status === 200) {
var myData = JSON.parse(http.responseText);