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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) | |
func holiday(date string) (string, error) { |
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
# -*-coding:utf8;-*- | |
import subprocess | |
""" | |
script untuk mengubah password MariaDB pada xampp docker. | |
ganti root@123 dengan password yang diinginkan dan tidak mudah ditebak! | |
author: guangrei | |
""" |
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
--[[this is simple script to help interpreted .lua file directly, run luarocks and luarocks admin in Qlua. | |
author: guangrei | |
--]] | |
require "android" | |
c = android.dialogGetInput("Qlua Helper!", "Please Choice:\n1.interpreted .lua file directly\n2.run luarocks command\n3.run luarocks-admin command") | |
command = {"/data/data/com.quseit.qlua5pro2/files/bin/lua5","/data/data/com.quseit.qlua5pro2/files/bin/lua5 /data/data/com.quseit.qlua5pro2/files/bin/luarocks","/data/data/com.quseit.qlua5pro2/files/bin/lua5 /data/data/com.quseit.qlua5pro2/files/bin/luarocks-admin"} | |
if tonumber(c.result) == 1 | |
then | |
i = android.dialogGetInput("Qlua Helper!", "please enter .lua file location") | |
else |
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
#!/bin/bash | |
KEYS=$1 | |
CMDS=$2 | |
if [ $# -eq 0 ] ; then | |
echo "No arguments supplied" | |
echo "Usage: command KEY CMD" | |
exit 1 | |
fi |
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
curl https://bashupload.com/grei/file.zip --data-binary @file.zip |
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
from http.server import BaseHTTPRequestHandler | |
from urllib import parse | |
from http.server import HTTPServer | |
class GetHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
parsed_path = parse.urlparse(self.path) | |
res = """ |
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 | |
function str_replace_word($cari, $ganti, $kalimat) | |
{ | |
$cek = strpos($kalimat, " "); | |
if ($cek != false) { | |
$token = explode(" ", $kalimat); | |
$map = array_map(function($val) use ($cari, $ganti) | |
{ | |
return $val === $cari ? $ganti : $val; |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
. /etc/apache2/envvars | |
# If not running interactively, don't do anything else | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines or lines starting with space in the history. |
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
#!/bin/bash | |
DOMAIN=$1 | |
PORT=$2 | |
if [ $# -eq 0 ] ; then | |
echo "No arguments supplied" | |
echo "Usage: command DOMAIN PORT" | |
exit 1 | |
fi |
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 | |
use Clue\React\Buzz\Browser; | |
use Psr\Http\Message\ResponseInterface; | |
require "vendor/autoload.php"; | |
$url = "http://jendela.data.kemdikbud.go.id/api/index.php/cwilayah/wilayahKabGet"; | |
$loop = React\EventLoop\Factory::create(); | |
$browser = new Browser($loop); | |
$browser->get($url)->then( |
NewerOlder