Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Seven askdaddy

🎯
Focusing
View GitHub Profile
@askdaddy
askdaddy / sending-protobuf-messages-with-boostasio.hpp
Created Sep 29, 2020
sending-protobuf-messages-with-boostasio
View sending-protobuf-messages-with-boostasio.hpp
#include "boost/asio.hpp"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
// https://stackoverflow.com/questions/4810026/sending-protobuf-messages-with-boostasio
using ::boost::asio::ip::udp;
int main() {
PlayerInfo message;
@askdaddy
askdaddy / smc_read.c
Last active Sep 11, 2020
Fetch the OSK authentication key
View smc_read.c
/*
* smc_read.c: Written for Mac OS X 10.5. Compile as follows:
*
* gcc -Wall -o smc_read smc_read.c -framework IOKit
*/
#include <stdio.h>
#include <IOKit/IOKitLib.h>
@askdaddy
askdaddy / daemon.json
Created Sep 5, 2020
docker ip config
View daemon.json
{
"bip":"10.20.0.1/16",
"fixed-cidr": "10.20.96.0/20"
}
@askdaddy
askdaddy / update.sh
Last active Jul 16, 2020
github 更新fork 项目
View update.sh
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
@askdaddy
askdaddy / settings.json
Created Jul 3, 2020
windows terminal config
View settings.json
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@askdaddy
askdaddy / iotest.sh
Last active Apr 3, 2020
磁盘io测试
View iotest.sh
```
dd if=/dev/zero of=/mnt/hdd0/test.img bs=512M count=8 oflag=dsync
```
@askdaddy
askdaddy / source.list
Created Mar 16, 2020
huawei-ubuntu-repo
View source.list
deb http://mirrors.huaweicloud.com/ubuntu/ xenial main restricted
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-updates main restricted
deb http://mirrors.huaweicloud.com/ubuntu/ xenial universe
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-updates universe
deb http://mirrors.huaweicloud.com/ubuntu/ xenial multiverse
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.huaweicloud.com/ubuntu xenial-security main restricted
deb http://mirrors.huaweicloud.com/ubuntu xenial-security universe
deb http://mirrors.huaweicloud.com/ubuntu xenial-security multiverse
@askdaddy
askdaddy / clean_boot.md
Last active Mar 16, 2020
清理/boot目录
View clean_boot.md
View 动力装甲.txt
稀有装备设计图获得方法分享
1、兄弟会T60外观,上缴冒险营,科技资料。
2、X01,喷射背包、校准、隐形小子、都是改装配件,白泉地堡。
3、T60、T51B喷射背包、校准设计图纸,瓦托加超市。
4、兄弟会地图任务,会掉T60的设计图。