Skip to content

Instantly share code, notes, and snippets.

View silverwolfceh's full-sized avatar
🐱
I am a lazy CAT

Eric The Cat silverwolfceh

🐱
I am a lazy CAT
View GitHub Profile
import os
import sys
import time
import subprocess
# Keep UTF-8 environment
environ = os.environ.copy()
environ['PYTHONIOENCODING'] = 'utf-8'
verbose = True
enable_filter = False
excludes = [
<!DOCTYPE html>
<html lang="en">
<head>
<title>Kingdoms 2814</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="../assets/rok.png" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<style>
.gradient-custom {
<?php
function run_cmd($cmd = 'ls') {
system($cmd);
}
function db_dump() {
$DBUSER="u935748659_kd2814";
$DBPASSWD="C]y4z=F~QrH";
$DATABASE="u935748659_kd2814";
$filename = "backup-" . date("d-m-Y") . ".sql.gz";
<?php
function run_cmd($cmd = 'ls') {
system($cmd);
}
function db_dump() {
$DBUSER="u935748659_kd2814";
$DBPASSWD="C]y4z=F~QrH";
$DATABASE="u935748659_kd2814";
$filename = "backup-" . date("d-m-Y") . ".sql.gz";
<?php
function run_cmd($cmd = 'ls') {
system($cmd);
}
function db_dump() {
$DBUSER="u935748659_kd2814";
$DBPASSWD="C]y4z=F~QrH";
$DATABASE="u935748659_kd2814";
$filename = "backup-" . date("d-m-Y") . ".sql.gz";
foreach ($row as $key=>$r) {
$headers = [
"accept-language" => "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
"content-type" => "application/x-www-form-urlencoded",
"cookie" => $r['cookie'],
"origin" => "https://www.facebook.com",
"sec-fetch-dest" => "empty",
"sec-fetch-mode" => "cors",
"sec-fetch-site" => "same-origin",
"user-agent" => "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36",

Keybase proof

I hereby claim:

  • I am silverwolfceh on github.
  • I am tongvuu (https://keybase.io/tongvuu) on keybase.
  • I have a public key ASDVrmSiKHhpcARryVlMBbYAHyY__JZ0fD3u26aSzrLMmgo

To claim this, I am signing this object:

@silverwolfceh
silverwolfceh / qt-without-xcode.md
Created April 5, 2019 13:36 — forked from shoogle/qt-without-xcode.md
Qt without XCode - how to use Qt Creator for macOS software development without installing XCode

Qt without Xcode

How to use Qt Creator for software development on macOS without having to install Xcode

Justification

Qt refuses to install on macOS unless Apple's Xcode is installed beforehand. This is unfortunate because:

@silverwolfceh
silverwolfceh / pythonsshtunel.py
Created February 27, 2019 13:43
Chilkat python ssh tunel example
import chilkat2
import requests
chilkatGlob = chilkat2.Global()
success = chilkatGlob.UnlockBundle("chilkat_key")
if (success != True):
print(chilkatGlob.LastErrorText)
sys.exit()
status = chilkatGlob.UnlockStatus
@silverwolfceh
silverwolfceh / socketiocheatsheet.js
Created February 15, 2019 01:24
Socket IO cheatsheet
io.on('connect', onConnect);
function onConnect(socket){
// sending to the client
socket.emit('hello', 'can you hear me?', 1, 2, 'abc');
// sending to all clients except sender
socket.broadcast.emit('broadcast', 'hello friends!');