Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Ramesh Murugesan macroramesh6

:octocat:
View GitHub Profile
@ismail0352
ismail0352 / openvpn.tf
Last active Apr 8, 2021
Example of how a vpn server can be created
View openvpn.tf
module "prod-openvpn-sg" {
# source = "../modules/security-group"
source = "github.com/terraform-aws-modules/terraform-aws-security-group"
name = "${var.vpn_name}-sg"
description = "Security Group for openvpn server Prod"
vpc_id = var.vpc_id
ingress_cidr_blocks = ["0.0.0.0/0"] # Actual IP range to support
ingress_ipv6_cidr_blocks = ["::/0"]
ingress_rules = ["openvpn-udp", "openvpn-tcp", "openvpn-https-tcp", "ssh-tcp"]
egress_rules = ["all-all"]
View ubuntu-sleep.yaml
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
labels:
app: ubuntu
spec:
containers:
- image: ubuntu
command:
@passionsjin
passionsjin / usage.md
Created May 12, 2020
부하테스트- artillery
View usage.md

npm install artillery

  • 간단테스트 artillery quick --count 500 -n 20 https://scaleouttest.azurewebsites.net/
  • 500번 카운트를 20명이서 하는 효과(?)
@navicore
navicore / az_cmds.md
Last active Nov 6, 2019
az commands
View az_cmds.md

az commands

get tenant id and subscription id

az account show -o json | jq ".tenantId, .id"

create an application

@simonw
simonw / how-to.txt
Created Apr 13, 2016
How to create a tarball of a git repository using "git archive"
View how-to.txt
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
@bahmutov
bahmutov / Docker shell commands.sh
Last active Apr 27, 2021
A personal cheat sheet for running local Node project in a Docker container
View Docker shell commands.sh
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
@RinatMullayanov
RinatMullayanov / Dockerfile
Last active Jun 10, 2021
Ubuntu Node.js Dockerfile
View Dockerfile
#
# Ubuntu Node.js Dockerfile
#
# https://github.com/dockerfile/ubuntu/blob/master/Dockerfile
# https://docs.docker.com/examples/nodejs_web_app/
#
# Pull base image.
FROM ubuntu:14.04
@tdpreece
tdpreece / simple_http_server.sh
Created Sep 25, 2015
Running a Python SimpleHTTPServer in the background and killing it when doneSimpleHTTPServer
View simple_http_server.sh
#!/usr/bin/env bash
# Create a page in the current dir
echo "My Test Page" > test.html
# Start server
python -m SimpleHTTPServer 8000 &> /dev/null &
pid=$!
# Give server time to start up
View meteor_reactive_var.html
<template name="meteor_reactive_var">
<div>{{count}}</div>
<button>Increment Count</button>
</template>
@soheilhy
soheilhy / nginxproxy.md
Last active Jun 12, 2021
How to proxy web apps using nginx?
View nginxproxy.md

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers