Skip to content

Instantly share code, notes, and snippets.

View breakstring's full-sized avatar

Kenn Zhang breakstring

View GitHub Profile
@breakstring
breakstring / backup_gitea.sh
Created December 13, 2021 08:35 — forked from sinbad/backup_gitea.sh
My Gitea Backup & Restore Scripts
#!/bin/bash
# `gitea dump` doesn't currently back up LFS data as well, only git repos
# It primarily backs up the SQL DB, and also the config / logs
# We'll backup like this:
# * "gitea dump" to backup the DB and config etc
# * tar / bzip all the repos since they will be skipped
# * Not rotated because git data is immutable (normally) so has all data
# * rsync LFS data directly from /volume/docker/gitea/git/lfs
# * No need for rotation since all files are immutable
@breakstring
breakstring / betbetbetbet.cpp
Created June 28, 2018 11:06
用来测试EOS的一段代码,在生成abi时,需要使用 48 行的 EOSIO_ABI,生成 wast 时需要使用49行的 EOSIO_ABI_EX 。根据实际情况分别注释这两行来使用。
#include <eosiolib/asset.hpp>
#include "betbetbetbet.hpp"
using namespace eosio;
using std::string;
class betbetbetbet : public eosio::contract
{
public:
using contract::contract;