Skip to content

Instantly share code, notes, and snippets.

View DupontC's full-sized avatar

Dupont Cyril DupontC

View GitHub Profile
import boto3
ecs = boto3.client('ecs')
ssm = boto3.client('ssm')
cluster_name =sample-cluster
service_name =sample-service
# To stop the tasks
response = ecs.describe_services(
cluster=cluster_name,
@hmwill
hmwill / gist:ad3b1dab04ca4d9e5d761ba22de97efd
Last active March 2, 2025 01:38
Setting up Rust on Chrome OS
# Set up basic dev tools
sudo apt-get update
sudo apt-get install build-essential
# Run the base installation
curl https://sh.rustup.rs -sSf | sh
# Set the path
export PATH="$HOME/.cargo/bin:$PATH"
@lmmendes
lmmendes / Rancher.md
Created December 9, 2016 13:25
Running Rancher locally (with two hosts) using MacOS Docker and VirtualBox

Rancher

Rancher is an open source project that provides a complete platform for operating Docker in production. It provides infrastructure services such as multi-host networking, global and local load balancing, and volume snapshots.

This documentation describes how to run Rancher localy for development and evaluation propuses.

I'm using Docker for OSX (native) but even for this to work you will need to install VirtualBox.

Launching Management Rancher Server

@btroncone
btroncone / ngrxintro.md
Last active July 5, 2025 14:15
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@btroncone
btroncone / authentication.ts
Last active April 10, 2022 06:44
Angular 2 application role access decorator, wrapping built in CanAccess functionality. Prevents view transitions when user roles are not appropriate.
import { Injectable } from 'angular2/core';
import { Storage } from './storage';
import { CurrentUser } from '../interfaces/common';
@Injectable()
export class Authentication{
private _storageService : Storage;
private _userKey : string = "CURRENT_USER";
constructor(storageService : Storage){
@zackferrofields
zackferrofields / app_Dockerfile
Last active October 25, 2015 18:43
Docker compose nginx, node & redis
// ./app/Dockerfile
FROM node:4.1.0
WORKDIR /src/app
ADD package.json package.json
RUN npm install