This file contains hidden or 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 the box | |
sudo yum update -y | |
sudo yum clean all | |
# fill the empty spaces with zeroes | |
sudo dd if=/dev/zero of=/boot/EMPTY bs=1M | |
sudo rm -f /boot/EMPTY | |
sudo dd if=/dev/zero of=/EMPTY bs=1M | |
sudo rm -f /EMPTY |
This file contains hidden or 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
# install perlbrew | |
sudo yum install -y perl perl-CPAN perl-CPAN-Meta | |
sudo cpan App::cpanminus | |
sudo cpanm install App::perlbrew | |
# install cpanm and perl latest | |
perlbrew install-cpanm | |
perlbrew install-patchperl | |
perlbrew install 5.22.0 |
This file contains hidden or 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
FROM centos:latest | |
MAINTAINER Fitz Abucay <[email protected]> | |
RUN yum update -y | |
RUN yum install -y deltarpm | |
RUN yum install -y java-1.7.0-openjdk-headless | |
ENV VERTX_HOME /opt/vertx | |
RUN mkdir -p $VERTX_HOME && \ |
This file contains hidden or 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
## from https://gist.github.com/scturtle/5972996 | |
import re | |
import os | |
import sys | |
import md5 | |
import json | |
import random | |
import requests |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
## from https://github.com/yanunon/NeteaseCloudMusic | |
''' | |
Created on 2013-06-07 19:28 | |
@author: Yang Junyong <[email protected]> | |
''' |
This file contains hidden or 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
# create and encrypt ~/.msmtp/secrets.gpg | |
mkdir -p ~/.msmtp | |
echo -e "password\n" | gpg -e -r [your_gpg_id] -o ~/.msmtp/secrets.gpg | |
# in `.msmtprc` change the password to passwordeval to launch an external program. | |
passwordeval "gpg -q --for-your-eyes-only --no-tty -d ~/.msmtp/secrets.gpg" |
This file contains hidden or 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
# create ~/.mutt/secrets | |
cat > ~/.mutt/secrets << EOF | |
set imap_pass="secret_password" | |
set smtp_pass="secret_password" | |
EOF | |
# encrypt ~/.mutt/secrets | |
gpg -e -r [your_gpg_id] ~/.mutt/secrets | |
# clean removed ~/.mutt/secrets file |
This file contains hidden or 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
# encrypt ~/.netrc with gpg agent | |
gpg -e -r [your_gpg_id] ~/.netrc | |
# clean removed .netrc file | |
shred ~/.netrc | |
rm -f ~/.netrc | |
# enable credential helper | |
# this would search files in your home directory | |
# .authinfo.gpg |
This file contains hidden or 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
# removes unfinished pulled images in docker | |
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") |
This file contains hidden or 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
# keyservers: | |
# pgp.mit.edu | |
# keyserver.ubuntu.com | |
# keys.gnupg.net | |
# | |
# the keyserver parameter is optional and would default to the | |
# distributed keyserver of keys.gnupg.net | |
# search keys | |
gpg2 [--keyserver [keyserver]] --search-keys [pubkey_id] |