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 discord.ext import commands | |
client = commands.Bot( | |
command_prefix='!', | |
help_command=None | |
) | |
@client.command() | |
async def hello(ctx): | |
await ctx.send('Hello!') |
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 | |
curl_setopt_array($curl, array( | |
CURLOPT_RETURNTRANSFER => 1, | |
CURLOPT_URL => $this->getHook(), | |
CURLOPT_HTTPHEADER => array("Content-Type: application/json"), | |
CURLOPT_SSL_VERIFYHOST => 0, | |
CURLOPT_SSL_VERIFYPEER => 0, | |
CURLOPT_POST => 1, | |
CURLOPT_POSTFIELDS => json_encode($data) |
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
{ | |
"commits": [ | |
{ | |
"id": "6a7a1fe81b3fe0257d973ca60bc5db3def9051cb", | |
"tree_id": "641b29bef476d394877bb29ab6aebf446f150b3d", | |
"distinct": true, | |
"message": "DB_EVENTS to the ENV", | |
"timestamp": "2019-08-29T02:01:39+08:00", | |
"url": "https://github.com/InspectorGadget/sds-cms/commit/6a7a1fe81b3fe0257d973ca60bc5db3def9051cb", | |
"author": { |
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
# Author : InspectorGadget | |
# All copyrights to RTGNetwork Security Team | |
import random | |
import socket | |
import string | |
import sys | |
import threading | |
import time |
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 | |
// Include core files | |
include "Core/connect.php"; | |
include "Core/functions.php"; | |
// Connect | |
connect($server, $user, $password, $database); | |
// Get the options from the kbx_options table |
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 | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
ini_set('max_execution_time', 300); //300 seconds = 5 minutes. In case if your CURL is slow and is loading too much (Can be IPv6 problem) | |
error_reporting(E_ALL); | |
define('OAUTH2_CLIENT_ID', '1234567890'); | |
define('OAUTH2_CLIENT_SECRET', 'verysecretclientcode'); |
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
// What I want to do | |
// Some teachers will have a lot of Levels, like S4, S5, S6 | |
// Each Level has its own rate per hour | |
// I want to know how i can filter each level? | |
<?php | |
switch ($_GET['parameter']) { |
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 | |
$line = explode(", ", $api->returnCourseHandler()->returnPreviousCompletedCourse($username)); | |
// The response I get from this array if I print_r is "Array ( [0] => C1 [1] => C2 )" | |
if (in_array("C1", $line)) { | |
echo " | |
<div class='col-md-4'> | |
<div class='card'> | |
<div class='card-header'> |
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 | |
// Information at below: I've explained | |
// Inside Website: | |
<?php | |
error_reporting(1); | |
require 'includes/Handler.php'; | |
$api = new Handler(); |
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 | |
public function setFinance($month, $year, $param, $money) { | |
if ($this->checkFinance($month, $year) !== false) { // UPDATE | |
switch (strtolower($param)) { | |
case "inbound": | |
$previousInbound = $this->returnPrevInbound($month, $year); | |
$newInbound = $previousInbound + $money; | |
$run = $this->updateDatabase($month, $year, "inbound", $newInbound); | |
if ($run === true) { | |
return true; |
NewerOlder