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 | |
$sizePrint = 10; | |
for ($row=1; $row<=$sizePrint; $row++) | |
{ | |
for ($column=1; $column<=$sizePrint; $column++) | |
{ | |
$totalColRow = $row+$column; |
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
# Data in column alert | |
|alert | |
'[{"days": 2, "past": true, "time": 1607299200, "hours": 0, "weeks": 0, "minutes": 0, "seconds": 0}, "description": "Reminder"}]'; | |
SELECT * | |
FROM | |
WHERE alert->'$[*].trigger.time' <= JSON_ARRAY(1607731200); |
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
#! /bin/bash | |
set -euf -o pipefail | |
# Install pre-reqs | |
sudo apt-get install python3 git -y | |
o=$(python3 -c $'import os\nprint(os.get_blocking(0))\nos.set_blocking(0, True)') | |
#Download Latest Go | |
GOURLREGEX='https://dl.google.com/go/go[0-9\.]+\.linux-amd64.tar.gz' | |
echo "Finding latest version of Go for AMD64..." |
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
upstream myapp { | |
server 127.0.0.1:8081; | |
} | |
limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s; | |
server { | |
listen 80; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Credit card validate</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script> | |
<script> | |
/* | |
* Display error message based on current element's data attributes | |
*/ | |
function cgToggleError(element, status) { |
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
cmd jqplay with gin : https://github.com/owenthereal/jqplay |
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
(function (global) { | |
var pad = function (num, len) { | |
num = '' + num | |
while (num.length < len) { | |
num = '0' + num | |
} | |
return num | |
} | |
var time = function () { |
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
import requests, random, threading, time | |
URL = 'https://chiasenhac.vn/' | |
Request_Type = 'get' | |
JSON_Data = {} #Gets ignored if Request_Type is GET | |
#Lower=faster but more proxies get skiped because of multi-threading | |
timeout = 6 |
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
const { Base64 } = require('js-base64'); | |
const _ = require('underscore'); | |
const { parseAddresses } = require('mimelib'); | |
const { isArray } = require('underscore'); | |
/** | |
* Decodes a url safe Base64 string to its original representation. | |
* @param {string} string | |
* @return {string} | |
*/ | |
function urlB64Decode(string = '', isText = false) { |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |