Skip to content

Instantly share code, notes, and snippets.

View arun51191's full-sized avatar

Arun kumar arun51191

  • Visakhapatnam
View GitHub Profile
@arun51191
arun51191 / cleanup.py
Created July 6, 2020 10:56 — forked from luhn/cleanup.py
An AWS Lambda function to delete old AMIs.
"""
Code adapted from and inspired by http://blog.ranman.org/cleaning-up-aws-with-boto3/.
"""
import os
import re
from datetime import datetime, timedelta
import boto3
# GET VERSION
yarn -v (or --version)
# GET HELP
yarn help
# CREATE PACKAGE.JSON
yarn init
yarn init -y // Use defaults
@arun51191
arun51191 / web-servers.md
Created November 14, 2018 11:45 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@arun51191
arun51191 / gist:2128fecf0cfb830a7c5ac9cb68777b4e
Created April 21, 2018 16:00 — forked from amokan/gist:3881064
jenkins-cli commands (v1.485)
build
Builds a job, and optionally waits until its completion.
cancel-quiet-down
Cancel the effect of the "quiet-down" command.
clear-queue
Clears the build queue
connect-node
Reconnect to a node
copy-job
Copies a job.