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('memory_limit', '8196M'); | |
require 'combine.php'; | |
require 'stats.php'; | |
$range = range(1,22); | |
$full = array_combination(15, $range); | |
$qty = count($full); |
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
/* | |
https://www.geeksforgeeks.org/functions-that-are-executed-before-and-after-main-in-c/ | |
*/ | |
#include<stdio.h> | |
/* Apply the constructor attribute to myStartupFun() so that it | |
is executed before main() */ |
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/sh | |
ffmpeg -i {{input.mp4}} -c copy -an {{output.mp4}} | |
exit 0 |
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 | |
/* | |
download all xls files from a url | |
note: requires fopen_url enabled! | |
*/ | |
function downloadFile($fileUrl, $saveTo) | |
{ | |
$fileContent = file_get_contents($fileUrl); |
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
... | |
#define isEmpty(_str, ...) \ | |
if (!_str || _str[0] == 0x0 || strlen(_str) == 0) { \ | |
if (sizeof((int[]){__VA_ARGS__}) > 1) { \ | |
return __VA_ARGS__; \ | |
} else { \ | |
return; \ | |
} \ | |
} |
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
#include <stdio.h> | |
#include <string.h> | |
// clone or clib | |
// https://github.com/kokke/tiny-regex-c | |
#include "tiny-regex-c/re.h" | |
#include "tiny-regex-c/re.c" | |
int main() { | |
const char *input = "joao;maria;jose"; |
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
/* | |
fetch data from binance, using kline | |
using libcurl and cjson | |
gcc -I. -Icjson -o /cygdrive/x/test test.fetch.c cjson/libcjson.a -lcurl -lrt && /cygdrive/x/test | |
================================= | |
it's a poc of a ubot binance bot! | |
================================= |
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 | |
# ******************** # | |
# use it own your risk # | |
# ******************** # | |
# checkotu: https://ntp.br/guia/linux/ # | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" |
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/sh | |
set -e | |
sudo apt install unattended-upgrades -y | |
sudo dpkg-reconfigure --priority=low unattended-upgrades # choose yes | |
exit 0 | |
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/sh | |
# https://www.freqtrade.io/ | |
# https://github.com/freqtrade/ | |
mkdir -p /opt | |
cd /opt | |
git clone --branch=stable --depth=1 https://github.com/freqtrade/freqtrade.git | |
cd freqtrade |
NewerOlder