Skip to content

Instantly share code, notes, and snippets.

View od3n's full-sized avatar
🎯
Focusing

Salahuddin Hairai od3n

🎯
Focusing
View GitHub Profile
<html>
<head>
<title>Checkbox</title>
<style>
input[type=checkbox] {
display:none;
}
input[type=checkbox] + label
{
<form>
<div class="btn-group" data-toggle-name="is_private" data-toggle="buttons-radio" >
<button type="button" value="0" class="btn" data-toggle="button">Public</button>
<button type="button" value="1" class="btn" data-toggle="button">Private</button>
</div>
<input type="hidden" name="is_private" value="0" />
</form>
<% if logged_in? -%>
<script type="text/javascript">
function wheresWaldo(users) {
document.write("<p>Users on this page: ")
var links = []
users.forEach(function(user) {
var pieces = user.split('/')
links.push('<a href="/users/' + pieces[0] + '">' + pieces[1] + '</a>')
})
document.write(links.join(", ") + "</p>")
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# <<!!!!!!!!!!!!!!!!!!! FIX ME !!!!!!!!!!!!!!!!!!!!!!!!> wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
.DS_Store
# login to your droplet
ssh root@<ip-address>
# change root password
passwd
# create new user
adduser -c "New User Description" -m <user>
# set new user password
@od3n
od3n / aws.md
Created May 16, 2014 17:28 — forked from ajmalafif/aws.md