Skip to content

Instantly share code, notes, and snippets.

View oussemos's full-sized avatar

Oussema Ch oussemos

  • Paris, France
View GitHub Profile
"""
List unhealthy services in your ECS clusters
The script will list the clusters and fetch details about services that are
running in it.
Then it determines if the service is healthy or not:
* the service status must be ACTIVE
* the service must have a non-empty events list
* the service desiredCount equals its runningCount
* the last event message of the service ends with 'has reached a steady state.'
@SWBSanjeewa
SWBSanjeewa / jenkins-docker-compose
Created August 22, 2017 05:53
Run jenkins master and slave using docker compose
Master - jenkins-master-docker-compose.yml
jenkins_app:
image: jenkins:2.60.1
container_name: jenkins_master
restart: always
ports:
- "80:8080"
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active February 3, 2025 10:55
Ansible variable precedence (order, hierarchy)

type tmux in terminal

Windows:

  • Create new window: Ctrl+b c
  • Move to next window: Ctrl+b n
  • Move to previos window: Ctrl+b p
  • List all wondows: Ctrl+b w

Panes/Split:

@SAFAD
SAFAD / unlike_all_pages_facebook.md
Created February 24, 2022 20:57
How to unlike all Facebook page at once

Unlike all facebook pages 2022

Go to: https://m.facebook.com/pages/launchpoint/liked_pages

Paste the following script into console (F12 -> console):

var unlike_all = ()=> {
	[].slice.call(document.querySelectorAll('[data-sigil="action-title"')).filter(x=>x.innerText.indexOf('Unlike') !=-1).map(x=>{x.click()});
	window.scrollTo(0,document.body.scrollHeight);
	window.setTimeout(unlike_all, 3 * 1000)