Skip to content

Instantly share code, notes, and snippets.

View ticklemynausea's full-sized avatar
🫠
this is fine

Mário Carneiro ticklemynausea

🫠
this is fine
View GitHub Profile
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@snowgooseyk
snowgooseyk / emulateHTTP.coffee
Last active August 29, 2015 14:09
Equivalent of Backbone#emulateHTTP on AngularJS
angular.module('App',[])
.factory('emulateHttpInterceptor', ($q) ->
{
request: (config) ->
method = config.method.toUpperCase()
if method in ['DELETE','PUT']
config.method = 'POST'
config.headers['X-HTTP-Method-Override'] = method
config
}
@maurizi
maurizi / ansible-galaxy.bat
Last active May 21, 2024 02:10
Running Ansible on Windows
@echo off
cygwin-shim.bat /bin/ansible-galaxy %*
@prasertsakd
prasertsakd / webserver.ino
Last active January 9, 2023 23:36
Webserver for Arduino ESP8266
//Leonardo
Serial_ & dbgTerminal = Serial;
HardwareSerial & espSerial = Serial1;
////UNO & M328P
//#include <SoftwareSerial.h>
//SoftwareSerial dbgTerminal(10, 11); // RX, TX
//HardwareSerial & espSerial = Serial;
//