Skip to content

Instantly share code, notes, and snippets.

View creativefull's full-sized avatar

Shodiqul Muzaki creativefull

View GitHub Profile
How to install and run Headless nightmare.js based scripts in Ubuntu.
Steps:
1. Spin Ubuntu 16.04 x64 server
2. Run: apt-get update
3. Run: apt-get upgrade
4. Run: apt-get install -y libgtk2.0-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb
5. Install Node.js 6+. See: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
You can then run your script using this command:
@creativefull
creativefull / composer.json
Created October 25, 2017 03:05 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
<script type="text/javascript">
$(".klik").click(function() {
console.log("Element di klik");
$(this).closest("tr").find(".sub").toggle();
})
</script>
<div class="container col-lg-12">
<div class="kotak">