This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This problem appears after failed safe shutdown if you use windows beside Ubuntu, | |
# sometimes you need to logged in in windows then do a safe shut down. | |
# but, how if you cannot do these step just run this simple command on terminal. | |
$ sudo ntfsfix /dev/sda3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Telkom | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty-updates main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty-security main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty-backports main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty-proposed main restricted universe multiverse | |
ITB | |
deb ftp://ftp.itb.ac.id/pub/ubuntu trusty main restricted universe multiverse | |
deb ftp://ftp.itb.ac.id/pub/ubuntu trusty-updates main restricted universe multiverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stop all containers: | |
docker kill $(docker ps -q) | |
remove all containers | |
docker rm $(docker ps -a -q) | |
remove all docker images | |
docker rmi $(docker images -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# General project settings | |
################################# | |
# IP Address for the host only network, change it to anything you like | |
# but please keep it within the IPv4 private network range | |
ip_address = "10.0.1.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for pid in $(ps -ef | awk '/some search/ {print $2}'); do kill -9 $pid; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Detect Active Route | |
|-------------------------------------------------------------------------- | |
| | |
| Compare given route with current route and return output if they match. | |
| Very useful for navigation, marking if the link is active. | |
| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
EC2 external inventory script | |
================================= | |
Generates inventory that Ansible can understand by making API request to | |
AWS EC2 using the Boto library. | |
NOTE: This script assumes Ansible is being executed where the environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ansible EC2 external inventory script settings | |
# | |
[ec2] | |
# to talk to a private eucalyptus instance uncomment these lines | |
# and edit edit eucalyptus_host to be the host name of your cloud controller | |
#eucalyptus = True | |
#eucalyptus_host = clc.cloud.domain.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Update cloudwatch event rate to execute lambda function | |
aws events put-rule --name <rule-name-from-previous-step> --schedule-expression "rate(15 minutes)" --state ENABLED --description "Invoke Pricing Calculator Lambda function every 15 minutes" |
OlderNewer