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/sh | |
if [ "$1" = "" ] | |
then | |
echo usage $0 volume_id [--tag key[=value] [--tag key[=value] ...]] | |
exit 0 | |
else | |
snapshotid=`ec2-create-snapshot $1 | awk '{print $2}'` | |
shift | |
while [ "$1" != "" ]; do | |
ec2-create-tags $snapshotid --tag $1 |
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/sh | |
if [ "$1" = "" ] | |
then | |
echo usage $0 key=value [[key=value] ... ] | |
exit 0 | |
else | |
instance=`ec2-run-instances ami-39b23d38 | awk '{print $2}' | grep i-` | |
sleep 3 | |
volume=`ec2-describe-volumes | grep $instance | awk '{print $2}'` | |
for vol in ${volume[@]}; do |
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/sh | |
#set this script as alias of editor like | |
#alias vim='/path/shebang.sh' | |
if [ "${1}" = "" ]; then | |
vim | |
fi | |
filename=${1} | |
if [ -e $filename ]; then | |
vim $filename |
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
//script | |
$(function() { | |
topBtn.click(function () { | |
$('body,html').animate({ | |
scrollTop: 0 | |
}, 1000); | |
return false; | |
}); | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HERE IS TITLE</title> | |
<script type="text/javascript" src="processing.js"></script> | |
<script type="text/javascript"> | |
window.onload = function(){ | |
//var canvas = document.getElementById('canvas1'); | |
//var codeElm = document.getElementById('processing-code'); | |
//var code = codeElm.textContent || codeElm.innerText; |
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
// ==UserScript== | |
// @name remove_add.user.js | |
// @namespace http://nagataka.net/remove_add.user.js | |
// @include http://*.facebook.com/* | |
// @include https://*.facebook.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var rightCol = document.getElementById("rightCol"); | |
rightCol.parentNode.removeChild(rightCol); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc1.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
AWS.config.update({ | |
accessKeyId: ‘YOUR ACCESS KEY ID’, | |
secretAccessKey: ‘YOUR SECRET ACCESS KEY’ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc1.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
//for Identity Federation | |
var appId = 'YOUR FB APP ID'; | |
var roleArn = 'arn:aws:iam::xxxxxxxxxxxx:role/IdentityFederationRole'; |
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
<div class="btn-group"> | |
<button class="btn btn-primary">Manu</span></button> | |
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> | |
<ul class="dropdown-menu"> | |
<li><a href="">Action</a></li> | |
<li><a href="">Action</a></li> | |
<li class="divider"></li> | |
<li><a href="">Action</a></li> | |
</ul> | |
</div> |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
username = 'ec2-user' | |
hostname = '54.xxx.xxx.xx' | |
keyfile = 'C:\PathToYourAuthenticatedKeyFile\xxxxx.pem' | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
msg = hostname | |
strconcat msg ':22 /ssh /auth=publickey /user=' | |
strconcat msg username | |
strconcat msg ' /keyfile=' |
OlderNewer