Skip to content

Instantly share code, notes, and snippets.

View serverwentdown's full-sized avatar

Ambrose Chua serverwentdown

View GitHub Profile
clear
echo ""
echo " ---- CHECKING MD5 ---- "
echo ""
echo ""
SUM=$(openssl md5 "$2")
BFO="MD5($2)= "
echo "MD5 TO CHECK WITH"
echo "----------------------------------"
echo ""
@serverwentdown
serverwentdown / guessthis1.bf
Last active December 15, 2015 21:29
Guess this #1:
++++++++++[>+++++++>++++++++++>+++<<<-]>-----.>+++++++++.-----------.-+++++++++++++++++.---.++++.--------------.>++.<<++.>+++.+++++++++++++.--------------------.>.<---------------------------------.++++++++++++++++++++++++++++++++++++++++++++++++++++.------------.---.---.+++++++++++++++++++.-------..-----.----.++++++++++++++.----------.+++++.-----------.
@serverwentdown
serverwentdown / server.js
Last active December 21, 2015 22:29
Simple eval nodejs server for dudes who want to be hacked.
//
// Run
// node server.js > server.log
// OR
// forever -o server.log -e server.log start server.js
// OR
// node forever.js > server.log
//
/*
forever.js:
@serverwentdown
serverwentdown / guessthis2.bf
Last active December 28, 2015 17:58
Guess this #2:
,[>,]<[.<]
@serverwentdown
serverwentdown / ip.md
Created November 24, 2013 06:29
To some guy...

My gosh. It's shared intellectual property! Don't abuse it. I feel abused. You did so without permission. You owned part of it. I have to protect the property I partially own. Although you did modified it, what you did was include it. Inclusion. Yes. If I took a photo of you and added a backdrop of offensive material you will feel abused. It's not remixing, you added onto the entire thing. This shared property is owned by both of us. I still own part of it. I could share an idea with you, and use that idea inappropriately, making you feel abused. You own part of it. I should respect what you and I own. So should you.

In Python:

def eat():
    print "Eat",
def sleep():
    print "Sleep",
def rave():
    print "Rave",

while True:
@serverwentdown
serverwentdown / index.php
Last active April 6, 2022 23:46
Code for thumb.uni.me
<?php
// set_time_limit(3600);
$url = $_GET["url"];
if ($url) {
$width = $_GET["w"];
$allowed = array('jpg','gif','png');
$pos = strrpos($url, ".");
$str = substr($url,($pos + 1));
$ch = curl_init();
@serverwentdown
serverwentdown / server.js
Last active January 29, 2019 20:18 — forked from mixonic/server.js
// Bug fixes for current versions.
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
@serverwentdown
serverwentdown / fortune.sh
Last active January 1, 2016 17:49
Read the file please...
#!/bin/sh
# fortune.sh 10 print <- prints 10 fortunes on paper.
# fortune.sh 12 <- prints 12 fortunes to cat.
printf "" > tmp.txt
for i in $(eval echo {0..$1 })
do
printf "\n" >> tmp.txt
fortune >> tmp.txt
@serverwentdown
serverwentdown / Summer.css
Last active April 6, 2022 23:46
(MIT Licensed) Lato is "Summer" in Polish. Live: http://codepen.io/ambc/pen/waBqE A simple theme in CSS. Created initially for [Mou](http://mouapp.com/). Feel free to fork. Requires [Lato](http://google.com/fonts/specimen/Lato) and Monaco fonts installed. Should go well on print.
@import url(//fonts.googleapis.com/css?family=Lato:400,700,900,400italic,700italic,900italic);
/* Reset.css */ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/* Stuff under public domain: */
*, *:before, *:after {
box-sizing: border-box;
}
*:focus {