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
NeoBundle 'itchyny/lightline.vim' |
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
$ ssh somehost | |
Last login: Sat Aug 13 16:56:53 2016 from 0.0.0.0 | |
__| __|_ ) | |
_| ( / Amazon Linux AMI | |
___|\___|___| | |
https://aws.amazon.com/amazon-linux-ami/2016.03-release-notes/ | |
####################################################### | |
## WARNING: THIS SERVER IS CONFIGURED WITH ANSIBLE!! ## |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<h1>右クリック禁止</h1> | |
<p>クリックしてみてね</p> |
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
Step 13 : RUN yum -y install mod_ssl sendmail sendmail-cf && yum clean all | |
---> Running in 4508cbfff184 | |
Loaded plugins: fastestmirror | |
http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel | |
Trying other mirror. | |
http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel | |
Trying other mirror. | |
http://ftp.tsukuba.wide.ad.jp/Linux/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel | |
Trying other mirror. | |
http://kartolo.sby.datautama.net.id/EPEL/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel |
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
<?php | |
/** | |
* teratail | |
* | |
* by Leverages Co. Ltd. Technology Media Lab | |
*/ | |
function teratail(AwesomeEngineer $you) { | |
if (!isset($you->problems)) { | |
return "I am always happy."; |
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
<?php | |
/** | |
* teratail - Q&A community for every thinking engineer | |
* | |
* @author Leverages Co. Ltd. Technology Media Lab. | |
* @since 2014/07/16 | |
*/ | |
function teratail(ThinkingEngineer $you) | |
{ | |
$question = new Question($you->problems); |
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
#!/bin/bash | |
WORKDIR=~/Desktop/untitled | |
OUTPUTDIR=~/Desktop/pdfed | |
[[ ! -d $OUTPUTDIR ]] && mkdir $OUTPUTDIR | |
echo $WORKDIR | |
for FOLDER in $WORKDIR/*; do |
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
Please note that these warnings are just used to help the Homebrew maintainers | |
with debugging if you file an issue. If everything you use Homebrew for is | |
working fine: please don't worry and just ignore them. Thanks! | |
Warning: "config" scripts exist outside your system or Homebrew directories. | |
`./configure` scripts often look for *-config scripts to determine if | |
software packages are installed, and what additional flags to use when | |
compiling and linking. | |
Having additional scripts in your path can confuse software installed via |
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
if [ `which pyenv` ]; then | |
eval "$(pyenv init - --no-rehash)" # adding --no-rehash makes this faster | |
fi |
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
#!/bin/bash | |
# re-allocate shards of node "Wildboys" (ip=10.252.1.114) | |
variable=$(curl -X GET 10.252.1.114:9200/_cat/shards | grep UNASSIGNED | awk -v OFS=, '{print $1,$2,$3}') | |
for shard in $variable; do | |
index=$(echo $shard | cut -d, -f1) | |
snum=$(echo $shard | cut -d, -f2) | |
pr=$(echo $shard | cut -d, -f3) | |
echo |