Skip to content

Instantly share code, notes, and snippets.

View logerrors's full-sized avatar
💭

wuxing logerrors

💭
  • suzhou
View GitHub Profile
@logerrors
logerrors / cpp.yaml
Created January 16, 2022 07:24
multipass cloud-init cpp.yaml
#cloud-config
password: mypassword
chpasswd: { expire: False }
ssh_pwauth: True
packages:
- build-essential
- cmake
- gdb
@logerrors
logerrors / wuxing.pub
Created July 11, 2021 14:17
wuxing.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZQL/gvLVh2626tSbSFWktdUqYbxxzw6oguaySBnUrLiONHlMWXJYTKNe24KT3HArawHITGBC9EX9f8TdGBbLJ5AuLxEgKt1ZrYMwrCYAExt7jsTdBodzIBu8vDE+CV4bwXy1Y+nO2zAn5bJnSKKKxhB9LSVk5TsDWWY2u1N8QYqZDGAeZL0DFLjDTYNzRoxtazVnMr1hQJNz9diLq4TeN5KxBPOioo3NSXbh7I8CuRD1Ykx6Bg0arIfsxh7TnBYkCPr+rV5i6HrZ8pOcZ3pOO8+gNG18N6MjPcrzLez7RwwW7SayVXfNB3Gdv9JHmSnAYuC1SjRt/7YfNJEpTvpNUbpkA204rxXgGAxMYkHClapuw0Qen4ytso3hpTUSqU65qhKk9ZwQAhCeGCsVNLqKiBu7cbqS/uHG6Om4ovUugG9MdpZlbVaAF9MkBD61kH+RcuDXMZQax4AnsD6iybt98/5cDGHX8jmBc5XvFM/uPTjE4pOgV2DsVgG77olPBOgpT4w9fmQfIu0zmJXR8Qv1ca6DvDV2/3wybkuf2j0AiG4NfQFIuPrkmpIkKC9Nm2Ood9Owtd3m4BnnOWcfZJAUE5VdR8YyVYckWiIRGfvUWFpgSXyE3PVUfnshLKE1IjabY2Z8Goa263EVAC62lCHssG/A8g/IhPfjJHsWl1ev32w== wuxing
@logerrors
logerrors / badcode.c
Last active June 12, 2020 02:53
badcode
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int output(char * filename)
{
FILE * fp;
char bad[4096];
char str[64];
@logerrors
logerrors / wsgi.py
Created January 20, 2020 15:29
python-dotenv手动加载环境变量
import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
if os.path.exists(dotenv_path):
load_dotenv(dotenv_path)