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 <iostream> | |
#include <pqxx/pqxx> | |
#include <string> | |
#include <string> | |
template<size_t I, class It, class T, class Tuple> | |
std::enable_if_t<(I == std::tuple_size<Tuple>::value - 1)> assign(It it, It end, T& v, Tuple& tp) | |
{ | |
if (it == end) | |
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 <immintrin.h> | |
#include <string> | |
static const unsigned char __hex_chars[16] = {'0', '1', '2', '3', '4', '5', | |
'6', '7', '8', '9', 'a', 'b', | |
'c', 'd', 'e', 'f'}; | |
static const unsigned char __blend_table[32] = { | |
0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, | |
0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128}; | |
static const unsigned char __dup_index[16] = {0, 0, 1, 1, 2, 2, 3, 3, |
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 ( | |
"fmt" | |
"log" | |
"os" | |
"runtime" | |
"strings" | |
xml "github.com/dgrr/quickxml" |
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/base64" | |
"fmt" | |
"log" | |
"os" | |
"github.com/valyala/fasthttp" | |
) |
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 ( | |
"bytes" | |
"encoding/base64" | |
"fmt" | |
"log" | |
"github.com/valyala/fasthttp" | |
) |
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
# I am not a bash scripting expert. Sorry xd | |
sshfs_dirs=() | |
clean_sshfs_dirs() { | |
local var mountpoints=() | |
for i in `df -h|awk -F' ' '{split($6,a,"\n"); print a[1]}'`; do | |
mountpoints+=("$i") | |
done |