This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
field_1, | |
id_master, | |
sum(decode(bln,'01',jumlah)) jan, | |
sum(decode(bln,'02',jumlah)) feb, | |
sum(decode(bln,'03',jumlah)) mar, | |
sum(decode(bln,'04',jumlah)) apr, | |
sum(decode(bln,'05',jumlah)) mei, | |
sum(decode(bln,'06',jumlah)) jun, | |
sum(decode(bln,'07',jumlah)) jul, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('HTTP/1.1 403 Forbidden'); | |
?> | |
<html> | |
<head> | |
<title>Congratulations! You have been DENIED access</title> | |
</head> | |
<body> | |
<font size="4">You have been denied access because of the following reasons:<br /><br /> | |
1.) Too many failed login attempts, so you are likely brute forcing through logins.<br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.size = function(obj) { | |
var size = 0, key; | |
for (key in obj) { | |
if (obj.hasOwnProperty(key)) size++; | |
} | |
return size; | |
}; | |
// Get the size of an object | |
var size = Object.size(myArray); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To recursively give directories read&execute privileges: | |
find /path/to/base/dir -type d -exec chmod 755 {} + | |
# To recursively give files read privileges: | |
find /path/to/base/dir -type f -exec chmod 644 {} + | |
# Or, if there are many objects to process: | |
chmod 755 $(find /path/to/base/dir -type d) | |
chmod 644 $(find /path/to/base/dir -type f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* fossil-checkout.php | |
* Untuk melakukan checkout fossil di server tanpa harus login SSH | |
* | |
* Agar bisa berjalan, Fossil butuh HOME variabel : putenv() | |
* Add server environment. The environment variable will only exist | |
* for the duration of the current request. At the end of the request | |
* the environment is restored to its original state | |
* */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Number.prototype.formatMoney = function(c, d, t){ | |
var n = this, | |
c = isNaN(c = Math.abs(c)) ? 2 : c, | |
d = d == undefined ? "." : d, | |
t = t == undefined ? "," : t, | |
s = n < 0 ? "-" : "", | |
i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", | |
j = (j = i.length) > 3 ? j % 3 : 0; | |
return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Menjalankan fossil di server sebagai service | |
# Jangan sebagai root, karena ada masalah hak akses, jadi perlu user lain | |
# /repo/path adalah lokasi repository *.fossil | |
su user -c "nohup fossil server --port 1234 /repo/path > /dev/null 2>&1 &" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Dir\ffmpeg\bin\ffmpeg" -i %1 -vcodec copy -acodec copy "F:\TargetDir\%~n1.mp4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd | |
wget http://www-eu.apache.org/dist//httpd/httpd-2.4.20.tar.gz | |
tar xf httpd-2.4.12.tar.gz | |
cd httpd-2.4.12 | |
./configure | |
make | |
make install | |
; if needed, download apr and apr-util from here https://apr.apache.org/download.cgi | |
; extract and move folder to httpd-2.4.x/srclib, rename with just 'apr' and 'apr-util' |
OlderNewer