Requires
- aws-cli - https://aws.amazon.com/cli/
- jq - https://stedolan.github.io/jq/
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc
/* | |
Mozilla Firefox Anti-Telemetry user.js | |
Обновлено 25.06.2021 для Firefox 89 | |
Основано на: | |
https://github.com/ghacksuserjs/ghacks-user.js | |
https://github.com/earthlng/FFprefs-diffs | |
Цель данной выборки - отключение телеметрии без | |
"обрезания" рабочего функционала и |
import { CallHandler, ExecutionContext, Injectable, NestInterceptor } from '@nestjs/common'; | |
import { Observable } from 'rxjs'; | |
import { tap } from 'rxjs/operators'; | |
import { StatisticsService } from './statistics.service'; | |
@Injectable() | |
export class StatisticsInterceptor implements NestInterceptor { | |
constructor( | |
private readonly statisticsService: StatisticsService, |
// src: https://gist.github.com/apfelchips/f129c8316055e524774d757365267e26 | |
// goal: disable all annoying stuff from firefox and tighten security, but still retain all modern web features | |
// configure as little as possible to benefit from changeing/hardened defaults by Mozilla | |
// inspired by: | |
// https://github.com/pyllyukko/user.js/blob/master/user.js | |
// https://github.com/ghacksuserjs/ghacks-user.js/blob/master/user.js | |
// http://kb.mozillazine.org/About:config_entries | |
// https://gist.github.com/ruilapa/3207798 |
version: 0.2 | |
env: | |
parameter-store: | |
build_ssh_key: "build_ssh_key" | |
phases: | |
install: | |
commands: | |
- mkdir -p ~/.ssh |
#!/bin/sh | |
aws cloudformation deploy \ | |
--template-file stack.yaml \ | |
--stack-name edge-lambda-test \ | |
--capabilities CAPABILITY_IAM \ | |
--parameter-overrides Nonce=$RANDOM |
// *********************** | |
// | |
// Build and deploy different environments with jenkins pipeline | |
// | |
// Merge to develop -> triggers development release | |
// Merge to master without tag -> triggers staging release | |
// Merge to master with tag -> triggers staging and production release | |
// Production release requires manual approval on the jenkins job | |
// | |
// Configure jenkins pipeline project to pull tags! By default, tags are not pulled! |
Edit '/etc/sysconfig/jenkins' and add 'prefix=/jenkins' to 'JENKINS_ARGS' | |
************************************************************************** | |
JENKINS_ARGS="--prefix=/jenkins" | |
Comment out the default server config in '/etc/nginx/nginx.conf' | |
and create following file | |
'/etc/nginx/conf.d/domain.conf' | |
************************************************* |
//AngularJS app | |
.config( function myAppConfig ($locationProvider) { | |
$locationProvider.html5Mode(true); | |
... | |
} |
Requires
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc
#!/bin/bash | |
# Stop all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ] ; then | |
docker stop $containers | |
fi | |
# Delete all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ]; then | |
docker rm -f -v $containers |