Skip to content

Instantly share code, notes, and snippets.

View yoosuf's full-sized avatar
🌍
Somewhere in Asia

yoosuf

🌍
Somewhere in Asia
View GitHub Profile
@yoosuf
yoosuf / stopnremoveall.sh
Created August 14, 2019 01:48
Stop and remove all docker containers and images (Docker)
# List all containers (only IDs)
docker ps -aq
# Stop all running containers
docker stop $(docker ps -aq)
# Remove all containers
docker rm $(docker ps -aq)
# Remove all images
@yoosuf
yoosuf / tands.php
Last active March 27, 2016 11:19
Managing everything is WordPress is messy, so I wanted to send a POST request when a post is published
<?php
/**
* @package tands
* @version 0.1
*/
/*
Plugin Name: Trigger and Shoot by Yoosuf
Plugin URI: https://github.com/yoosuf
Description: This plugin simply pass the post details to where ever you want for what ever the porpose.
Author: Yoosuf Muhammad
@JamesDullaghan
JamesDullaghan / digitalocean.md
Created July 6, 2013 20:54
Deploy rails app to digitalocean with nginx, unicorn, capistrano & postgres

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh root@123.123.123.123

Add ssh fingerprint and enter password provided in email

@jdennes
jdennes / LICENSE
Last active March 7, 2024 04:40
Subscribing to a Campaign Monitor list using AJAX
The MIT License (MIT)
Copyright (c) James Dennes
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: