Skip to content

Instantly share code, notes, and snippets.

View subins2000's full-sized avatar
♥️
ആരാണു് സമാധാനം ആഗ്രഹിക്കാത്തതു്. Queen - 39

Subin Siby subins2000

♥️
ആരാണു് സമാധാനം ആഗ്രഹിക്കാത്തതു്. Queen - 39
View GitHub Profile
@subins2000
subins2000 / dns.c
Created February 13, 2017 04:10
PHP dns.c for Android
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
@subins2000
subins2000 / xml2-config
Created September 16, 2016 16:16
xml2-config BASH script
#! /bin/sh
prefix=/home/simsu/Other/projects/Web/Lobby/Zed/Auto/Android/compile/libxml2/output
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
usage()
{
cat <<EOF
<?php
function random($occurence = 4, $range = 100){
return rand(1, $range) % $occurence === 0;
}
$count = 0;
for($i=1;$i < 100;$i++){
random($argv[1]) === true ? $count++ : 0;
}
var_dump($count);
?>