Skip to content

Instantly share code, notes, and snippets.

View ephdtrg's full-sized avatar
💭
🐍

Euphemia Deathridge ephdtrg

💭
🐍
View GitHub Profile
#!/bin/sh
print_info()
{
echo "### Status"
echo "\`\`\`"
systemctl status --no-pager "snap.nextcloud.$1.service"
echo "\`\`\`"
echo "### Journal"
@ephdtrg
ephdtrg / config.mywish-testnet.json
Last active November 13, 2018 15:14
Config files for NEO MyWish Testnet
{
"ApplicationConfiguration": {
"Paths": {
"Chain": "Chain_{0}",
"Index": "Index_{0}"
},
"P2P": {
"Port": 20333,
"WsPort": 20334
},
server {
listen 80;
server_name nextcloud.your-domain.com;
# Add headers to serve security related headers
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
# The filename (relative to data-dir) to create a unix socket for HTTP RPC; set blank to disable. (eosio::http_plugin)
unix-socket-path = keosd.sock
# The local IP and port to listen for incoming http connections; leave blank to disable. (eosio::http_plugin)
http-server-address = 127.0.0.1:9953
# The local IP and port to listen for incoming https connections; leave blank to disable. (eosio::http_plugin)
# https-server-address =
# Filename with the certificate chain to present on https connections. PEM format. Required for https. (eosio::http_plugin)
@ephdtrg
ephdtrg / gist:15a07c7dcf451fcdc40186c04a57ebee
Last active January 17, 2019 11:10
tron eventsubscribe messages
Block subscription
event: message
data:{
"timeStamp":1547662317000,
"triggerName":"blockTrigger",
"blockNumber":5862702,
"blockHash":"000000000059752e606e215a10408041fa76ce55d6bfa0a4bdbf82fed2573e7c",
"transactionSize":166,
"transactionList":[
[
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
[
{
"constant": true,
"inputs": [
{
"name": "_addr",
"type": "address"
},
{
"name": "_index",
version: '2'
services:
db:
image: mariadb:10.1
environment:
MYSQL_ROOT_PASSWORD: your_mysql_root_password
MYSQL_USER: your_filerun_username
MYSQL_PASSWORD: your_filerun_password
MYSQL_DATABASE: your_filerun_database
@ephdtrg
ephdtrg / abi.json
Created July 18, 2019 14:22
abi for freeze tron payments contract
{
"entrys": [
{
"outputs": [
{
"type": "bool"
}
],
"constant": true,
"name": "CONTINUE_MINTING",
@ephdtrg
ephdtrg / .gitignore
Created October 11, 2019 14:24
Realty AI webserver impovements
/RealtyTime/API_methods/settings_local.py
processed_models/