Skip to content

Instantly share code, notes, and snippets.

View suciptoid's full-sized avatar
👋
Hello World

Sucipto suciptoid

👋
Hello World
View GitHub Profile
@suciptoid
suciptoid / admin.php
Last active March 1, 2016 15:13
Simple PHP Login
<?php session_start();
if(isset($_SESSION['username'])){
echo "Hi Admin, user kamu ".$_SESSION["username"];
}else{
header('Location: index.php');
}
?>
@suciptoid
suciptoid / ibnads.xl.co.id.js
Created December 27, 2015 14:13
ibnads.xl.co.id iframe script
//09/22/2015/22:54//iframeJs
var targetUrl = window.location.href;
if (self !== top) {
self.location.href = targetUrl
}
var iframe = iframe || {
object: null,
init: function init() {
this.object = document.getElementById("main-frame")
},
@suciptoid
suciptoid / unattended-mysql_secure_installation.md
Last active August 29, 2015 14:28 — forked from vdvm/unattended-mysql_secure_installation.md
A way to run mysql_secure_installation unattended

Mysql Secure Installation (Unattended)

NB : MyPass is your current mysql password

echo -e "MyPass\nn\nY\nY\nY\nY\n" | mysql_secure_installation 2>/dev/null

Result:


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
@suciptoid
suciptoid / example.php
Last active July 1, 2018 15:08
Yandex class for translate
<?php
/*
* Created by Sucipto
* http://www.sucipto.net
* June 2015
*/
include 'yandex.php';
@suciptoid
suciptoid / header.cpp
Created February 9, 2015 01:26
Header
#ifndef HTTPTHREAD_H
#define HTTPTHREAD_H
#include <QThread>
#include <QTcpSocket>
class FortuneThread : public QThread
{_
Q_OBJECT