Skip to content

Instantly share code, notes, and snippets.

View khoerodin's full-sized avatar
:octocat:
Meow everyday

Khoerodin khoerodin

:octocat:
Meow everyday
View GitHub Profile
@khoerodin
khoerodin / private_fork.md
Created September 2, 2023 10:36 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

<br> <!-- line-break -->
<img src="https://via.placeholder.com/200x200" alt="Description"> <!-- image -->
<input type="text"> <!-- text input -->
<!-- Tulisan ini akan diabaikan browser -->
<p>Ini adalah paragraf.</p>
<p>Ini adalah contoh paragraf yang ditulis dalam dokumen HTML.</p>
@khoerodin
khoerodin / install.sh
Last active May 6, 2023 07:58
Install V8js on Ubuntu
sudo add-apt-repository -y ppa:pinepain/libv8-5.4
sudo apt update
sudo apt install -y php-dev php-pear libv8-5.4
cd /tmp
git clone https://github.com/phpv8/v8js.git
cd v8js
phpize
./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++"
@khoerodin
khoerodin / hasClass.js
Created October 2, 2017 03:43 — forked from sonnyt/gist:8585696
JavaScript Check If Element Has Class
function hasClass(element, className) {
return element.className && new RegExp("(^|\\s)" + className + "(\\s|$)").test(element.className);
}
var myDiv = document.getElementById('MyDiv');
hasClass(myDiv, 'active');
// OR
@khoerodin
khoerodin / getProperty.js
Created July 28, 2017 08:57 — forked from jasonrhodes/getProperty.js
Get a nested object property by passing a dot notation string as the property name
/**
* A function to take a string written in dot notation style, and use it to
* find a nested object property inside of an object.
*
* Useful in a plugin or module that accepts a JSON array of objects, but
* you want to let the user specify where to find various bits of data
* inside of each custom object instead of forcing a standardized
* property list.
*
* @param String nested A dot notation style parameter reference (ie "urls.small")
@khoerodin
khoerodin / xdebug_php.ini
Created April 28, 2017 03:17 — forked from wsakaren/xdebug_php.ini
xdebug settings in php.ini
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
@khoerodin
khoerodin / phpstorm64.vmoptions
Created March 30, 2017 01:56
PHP Storm - Better font rendering on Ubuntu, How to adjust vmoptions
-Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
-Dsun.java2d.xrender=true