Skip to content

Instantly share code, notes, and snippets.

View darkterminal's full-sized avatar
🕺
Dancing While Coding

Imam Ali Mustofa darkterminal

🕺
Dancing While Coding
View GitHub Profile
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/trunk/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/trunk/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@darkterminal
darkterminal / ClassLoader.php
Created October 11, 2017 15:27
Illuminate\Support\ClassLoader
<?php
namespace Illuminate\Support;
class ClassLoader {
/**
* The registered directories.
*
* @var array
@darkterminal
darkterminal / .htaccess
Created October 13, 2017 07:06
Laravel .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
@darkterminal
darkterminal / install_lamp_16.sh
Created January 23, 2018 19:09 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 16.04 - PHP development (php 7.1, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 16.04 Dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2
@darkterminal
darkterminal / upload.php
Created January 31, 2018 15:46
Diperhatikan Koneksine
$query = "INSERT INTO timeline ('".$website."', '".$deskripsi."', '".$gambarbaru."')";
$sql = $MySQLiconn->query($query); // Iki asale seko file config/koneksi.php
@darkterminal
darkterminal / php-chmod
Created March 7, 2018 06:01 — forked from jasperf/php-chmod
PHP Script to change file and folder permissions See http://www.webhostingtalk.com/showthread.php?t=218863 #PHP #permissions #chmod
<?php
//http://www.webhostingtalk.com/showthread.php?t=218863
$start_dir = 'whatever'; // Starting directory no trailing slashes.
$perms['file'] = 0644; // chmod value for files don't enclose value in quotes.
$perms['folder'] = 0755; // chmod value for folders don't enclose value in quotes.
function chmod_file_folder($dir) {
global $perms;
$dh=@opendir($dir);
@import url(https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.3/animate.min.css);@import url(https://fonts.googleapis.com/css?family=Raleway);@-webkit-keyframes blink{0%,to{opacity:1}50%{opacity:0}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}a{text-decoration:none!important}.my-10{padding-top:6.5em;padding-bottom:6.5em}@media screen and (device-width:360px) and (device-height:640px) and (-webkit-device-pixel-ratio:3){.navbar{border-radius:0;background-color:#222!important}.navbar .nav-link,.navbar .navbar-brand{color:#fff!important}.carousel{background:#222}.carousel .carousel-item{height:100vh!important}.carousel .carousel-item:nth-child(1){background:#222 url(../img/slides/mobile-slide1.png) no-repeat center center!important;background-size:cover!important}.carousel .carousel-item:nth-child(2){background:#222 url(../img/slides/mobile-slide2.png) no-repeat center center!important;background-size:cover!important}.carousel .carousel-item:nth-child(3){background:#222 url(../img/slides/mobile-slide3.png
@darkterminal
darkterminal / InstagramFecthMediaAjax.php
Last active December 29, 2020 18:51
Fecth Instagram Media by Username using PHP without Instagram API
<?php
/**
* [getMediaByUsername description]
*
* Author : Imam Ali Mustofa - Betta Dev Indonesia
* Website : www.bettadevindonesia.com
*
* This function will scrap data from instagram without API
* Define username you need and define how many media will you get!
;[program:theprogramname]
;command=/bin/cat ; the program (relative uses PATH, can take args)
;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
;numprocs=1 ; number of processes copies to start (def 1)
;directory=/tmp ; directory to cwd to before exec (def no cwd)
;umask=022 ; umask for process (default None)
;priority=999 ; the relative start priority (default 999)
;autostart=true ; start at supervisord start (default: true)
;autorestart=true ; retstart at unexpected quit (default: true)
;startsecs=10 ; number of secs prog must stay running (def. 1)
@darkterminal
darkterminal / sources.list
Created July 6, 2018 06:23 — forked from jcanfield/sources.list
Ubuntu 16.10 Sources for APT
# Ubuntu Sources List Generator
>>> NEWS: Now available on SSL
>>> Replace your /etc/apt/sources.list with the following one. For adding GPG keys of new repos, see instruction (if available) in the sources.list below itself.
## curl https://repogen.simplylinux.ch/txt/yakkety/sources_dccbf34a40895c1d9b7a7e7d24ee21dbbbccc385.txt | sudo tee /etc/apt/sources.list
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #