Skip to content

Instantly share code, notes, and snippets.

View goeroeku's full-sized avatar

Agus Indra Cahaya goeroeku

View GitHub Profile
@goeroeku
goeroeku / chamilo.conf.md
Last active March 19, 2021 03:32 — forked from fer-ri/block.conf
Nginx Config Sites Available With Redirect Non Www To Www

untuk domain web chamilo

edit settingan domain.conf seperti script berikut dan jadikan komentar baris include snippets/php.conf:

location @rewrite{
    rewrite ^/courses/([^/]+)/scorm/(.*)$ /main/document/download_scorm.php?doc_url=/$2&cDir=$1 last;
    rewrite ^/courses/([^/]+)/document/(.*)$ /main/document/download.php?doc_url=/$2&cDir=$1 last;
    rewrite ^/courses/([^/]+)/work/(.*)$ /main/work/download.php?file=work/$2&cDir=$1 last;
    rewrite ^/courses/([^/]+)/upload/(.*)$ /app/courses/$1/upload/$2 last;
    try_files $uri /index.php;
@goeroeku
goeroeku / phpcs.sublime-settings
Created November 1, 2016 12:00 — forked from fer-ri/phpcs.sublime-settings
Setting that already complied with standard of Laravel and StyleCI. Demo https://github.com/ghprod/laravel-settings
{
// Do you want to run the phpcs checker?
"phpcs_sniffer_run": false,
// Execute the sniffer on file save
"phpcs_command_on_save": false,
"phpcs_executable_path": "/usr/local/bin/phpcs",
// Fix the issues on save
@goeroeku
goeroeku / default
Created November 1, 2016 12:04 — forked from fer-ri/default
Default Nginx Conf Debian / Ubuntu
server {
listen 80;
root /home/nginx/domains/default/public_html;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name _;

Editor

Recommended Editor:

From here on we'll use "edit" to denote the command that's meant to open the file in the editor. Replace "edit" with "subl" or "atom" as needed.

@goeroeku
goeroeku / README.md
Created November 1, 2016 12:12 — forked from fer-ri/README.md

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@goeroeku
goeroeku / cracking.md
Created November 13, 2016 07:26 — forked from vertexclique/cracking.md
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@goeroeku
goeroeku / perfectelementary.bash
Created November 15, 2016 00:49
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@goeroeku
goeroeku / Sublime Text 3 Crack.md
Created November 17, 2016 14:15 — forked from MehmetKursat/Sublime Text 3 Crack Tutorial.md
Sublime Text 3 Crack Tutorial - 3112 3111 3110

###Win x64

Version Platform Offset Change
3093 Win x64 0xF0A8B 85 -> 3B
3094 Win x64 0xF0A8B 85 -> 3B
3095 Win x64 0xF0BDF 85 -> 3B
3100 Win x64 0xE888D F8 -> E0
3101 Win x64 0xE7721 F8 -> E0
3102 Win x64 0xE849D F8 -> E0
3103 Win x64 0xE61FD F8 -> E0
@goeroeku
goeroeku / gist:8cc18684e06c6ba7c63ac8ba98a1eb14
Created November 19, 2016 16:41 — forked from khaidirh/gist:1c302edd6574b0eedde302ddbcfc9ac9
How to install Nginx stabel with HTTP2, PHP5.6-fpm PHP7.0, PHPMyadmin, MySQL-Server
============================================= NGINX ==================================================
1) Installing Nginx 1.9.5
First we need to update source.list, so that we can download the latest version of nginx. After connecting to the server through ssh, open the sources.list file
sudo nano /etc/apt/sources.list
and add the following lines:
deb http://nginx.org/packages/mainline/debian/ jessie nginx
@goeroeku
goeroeku / kill_ptree.cs
Created November 23, 2016 12:25 — forked from yohhoy/kill_ptree.cs
kill process tree(process group) on WIndows/C#
void KillProcessTree(System.Diagnostics.Process process)
{
string taskkill = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "taskkill.exe");
using (var procKiller = new System.Diagnostics.Process()) {
procKiller.StartInfo.FileName = taskkill;
procKiller.StartInfo.Arguments = string.Format("/PID {0} /T /F", process.Id);
procKiller.StartInfo.CreateNoWindow = true;
procKiller.StartInfo.UseShellExecute = false;
procKiller.Start();
procKiller.WaitForExit(1000); // wait 1sec