container_name=remapped
lxc init ubuntu-daily:z $container_name
lxc config set $container_name raw.idmap "both $UID 1000"
lxc config device add $container_name homedir disk source=$HOME path=/home/ubuntu
lxc start $container_name
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
[global] | |
fsid = | |
cluster = ceph | |
public network = 10.8.0.0/16 | |
# Enable cephx authentication (which uses shared keys for almost everything) | |
auth cluster required = none | |
auth service required = none | |
auth client required = none | |
# Replication | |
osd pool default size = 2 |
emerge -av dev-vcs/git vim tmux
[neko]
location = /var/db/repos/neko
sync-type = git
sync-uri = https://gitlab.com/deepbluev7/neko.git
ssh x1
lxc profile device remove default root
lxc profile device remove default eth0
lxc storage delete local
lxc config unset core.https_address
This file has been truncated, but you can view the full file.
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
/ticker/fbinance/BTCUSDT 39600.00 -0.05 | |
/ticker/fbinance/BTCUSDT 39600.10 0.1 | |
/ticker/binance/SOLUSDT 81.13000000 5.78 | |
/ticker/binance/SOLUSDT 81.13000000 3.53 | |
/ticker/binance/SOLUSDT 81.13000000 15.34 | |
/ticker/huobi/maticusdt 1.373029 80 | |
/ticker/huobi/maticusdt 1.37304 80 | |
/ticker/fbinance/BTCBUSD 39611.0 -0.001 | |
/ticker/fbinance/BTCBUSD 39611.0 -0.01 | |
/ticker/fbinance/BTCBUSD 39610.9 -0.028 |
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 | |
systemctl disable wg-quick@wg0 | |
systemctl stop wg-quick@wg0 | |
PRIVATEKEY=$(wg genkey) | |
CONFIGFILE="/etc/wireguard/wg0.conf" | |
echo "[Interface]" > $CONFIGFILE | |
echo "PrivateKey = ${PRIVATEKEY}" >> $CONFIGFILE |
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 <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <json-c/json.h> | |
#include <wsclient/wsclient.h> | |
int onclose(wsclient *c) { | |
fprintf(stderr, "onclose called: %d\n", c->sockfd); |
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
import requests | |
import json | |
# SDK: https://binance-docs.github.io/apidocs/futures/en/#sdk-and-code-demonstration | |
# The base endpoint is: https://fapi.binance.com | |
res = requests.get('https://fapi.binance.com/fapi/v1/exchangeInfo') | |
print(res) | |
response = json.loads(res.text) | |
print(response) |
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
// contracts/Valoriza.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/AccessControl.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol"; | |
contract Valoriza is ERC20, AccessControl { | |
using SafeMath for uint256; |