Skip to content

Instantly share code, notes, and snippets.

View heiswayi's full-sized avatar
👽

Heiswayi Nrird heiswayi

👽
View GitHub Profile
@heiswayi
heiswayi / privacy-policy.md
Last active February 11, 2021 13:57 — forked from maddisondesigns/cookie-policy.md
eCommerce Terms & Conditions and Privacy Templates

Privacy Policy

1. We respect your privacy

Business Name respects your right to privacy and this policy sets out how we collect and treat your personal information. “Personal information” is information we hold which is identifiable as being about you.

2. What personal information we collect

@heiswayi
heiswayi / markdown-cheatsheet.md
Last active October 6, 2022 18:34
Ultimate Markdown Cheatsheet, based on GitHub-flavored Markdown

Typography

Headings

Headings from H1 to H6 are constructed with a # for each level.

# H1 Heading
## H2 Heading
### H3 Heading
@heiswayi
heiswayi / dsr-formula-en.md
Last active September 23, 2021 13:19
Debt Service Ratio (DSR) Calculation for Housing Loan in Malaysia

DEBT SERVICE RATIO FORMULA

Income

Income per month

Basic Salary + Fix Allowance = Gross Income
@heiswayi
heiswayi / walkaway.php
Created October 8, 2015 15:45
HNSecurity Walkaway - PHP Proxy by Heiswayi Nrird
<?php
# HNSecurity Walkaway - PHP Proxy - Heiswayi Nrird
# CONFIG {{{
# Default to simple mode when the page is loaded. [false]
define('DEFAULT_SIMPLE',false);
# Force the page to always be in simple mode (no advanced mode option). [false]
define('FORCE_SIMPLE',false);
@heiswayi
heiswayi / function.js
Last active December 21, 2016 15:05
A JavaScript function to get which line number of caret current position belongs to in textarea element. Demo: http://jsfiddle.net/heiswayi/oxax5ouq/
function getLineOfCaret(a) {
var b = 0;
if (a.selectionEnd) b = a.selectionEnd; else if (document.selection) {
a.focus();
var c = document.selection.createRange();
if (null == c) b = 0; else {
var d = a.createTextRange(), e = d.duplicate();
d.moveToBookmark(c.getBookmark());
e.setEndPoint("EndToStart", d);
b = e.text.length;
@heiswayi
heiswayi / function.js
Created October 13, 2015 02:37
Escape ALL characters (JavaScript)
function escapeAll(str) {
var hexString = '';
for (var c in str) {
c = str.charAt(c);
for (i = 0; i < 256; ++i) {
// convert i into a 2-digit hex string
var h = i.toString(16);
if (h.length == 1)
h = "0" + h;
@heiswayi
heiswayi / gist:34d0de1ddfa72fb53e7e
Created October 14, 2015 01:48 — forked from jwoschitz/gist:1129249
Brute force implementation / C#
class Program
{
#region Private variables
// the secret password which we will try to find via brute force
private static string password = "p123";
private static string result;
private static bool isMatched = false;
@heiswayi
heiswayi / reset.min.css
Created October 21, 2015 05:53
Based on Eric Meyers v2.0 reset
html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}body{line-height:1;}ol,ul{list-style:none;}blockquote,q{quotes:none;}blockckquote:before,blockquote:after,q:before,q:after{content:'';content:none;}table{border-collapse:collapse;border-spacing:0;}
@heiswayi
heiswayi / auto_signin_to_punbb.php
Created October 26, 2015 06:50
PunBB Login Integration from Other Site
<?php
// FILENAME: auto_signin_to_punbb.php
// WRITTEN BY: Heiswayi Nrird
// Define the path to the forum root
define('FORUM_ROOT', './punbb/');
require FORUM_ROOT.'include/common.php';
($hook = get_hook('li_start')) ? eval($hook) : null;
// Load the login.php language file
@heiswayi
heiswayi / google-dorks-2015.txt
Created October 26, 2015 07:14
Google Dorks List 2015
intitle:index.of .bash_history
intitle:index.of .sh_history
intitle:"Index of" index.html.bak
intitle:"Index of" index.php.bak
intitle:"Index of" index.jsp.bak
intitle:"Index of" ".htpasswd" htpasswd.bak
inurl:backup intitle:index.of inurl:admin
"Index of /backup"
intitle:"Index of" index.html~
intitle:"Index of" index.php~