Access monitor: mysql -h [host] -u [username] -p (will prompt for password)
Access database: mysql -h [host] -u [username] -p [database] (will prompt for password)
Users functions
| # one or the other, NOT both | |
| [url "https://github"] | |
| insteadOf = git://github | |
| # or | |
| [url "[email protected]:"] | |
| insteadOf = git://github | 
| sudo lsof -i:40025 | 
| import boto3 | |
| from boto3.session import Session | |
| role_arn = os.environ.get('ASSUME_ROLE') | |
| if roleArn: | |
| client = boto3.client('sts') | |
| assumed_role = client.assume_role(RoleArn=roleArn, RoleSessionName='test') | |
| session = Session(aws_access_key_id=assumed_role['Credentials']['AccessKeyId'], | |
| aws_secret_access_key=assumed_role['Credentials']['SecretAccessKey'], | 
| URL="http://stackoverflow.com/" | |
| # store the whole response with the status at the and | |
| HTTP_RESPONSE=$(curl --silent --write-out "HTTPSTATUS:%{http_code}" -X POST $URL) | |
| # extract the body | |
| HTTP_BODY=$(echo $HTTP_RESPONSE | sed -e 's/HTTPSTATUS\:.*//g') | |
| # extract the status | |
| HTTP_STATUS=$(echo $HTTP_RESPONSE | tr -d '\n' | sed -e 's/.*HTTPSTATUS://') | 
| files: | |
| "/etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf": | |
| mode: "000755" | |
| owner: root | |
| group: root | |
| content: | | |
| server { | |
| listen 80; | |
| gzip on; | 
I hereby claim:
To claim this, I am signing this object:
| import { Injectable } from '@angular/core'; | |
| import { HttpClient, HttpHeaders } from '@angular/common/http'; | |
| import { AuthGuardService } from './auth-guard.service'; | |
| import { AWS_APIGW_ID, AWS_REGION } from '../conf/aws.const'; | |
| export const API_ROOT = `https://${AWS_APIGW_ID}.execute-api.${AWS_REGION}.amazonaws.com/prd`; | |
| @Injectable() | |
| export class ApiService { | 
| import { Injectable } from '@angular/core'; | |
| import { HttpClient, HttpHeaders } from '@angular/common/http'; | |
| import { AuthGuardService } from './auth-guard.service'; | |
| import { AWS_APIGW_ID, AWS_REGION } from '../conf/aws.const'; | |
| export const API_ROOT = `https://${AWS_APIGW_ID}.execute-api.${AWS_REGION}.amazonaws.com/prd`; | |
| @Injectable() | |
| export class ApiService { | 
| #stop all containers | |
| #remove all containers | |
| #remove all docker images | |
| docker kill $(docker ps -q) && docker rm $(docker ps -a -q) && docker rmi $(docker images -q) -f | |
| #remove all docker volumes | |
| docker volume ls -qf dangling=true | xargs -r docker volume rm | |
| #clear everything unused | |
| docker ps -q | xargs -r docker stop | |
| docker system purge -a |