Skip to content

Instantly share code, notes, and snippets.

View zjuyk's full-sized avatar
🎯
Focusing

千玄子 zjuyk

🎯
Focusing
View GitHub Profile
@lilydjwg
lilydjwg / gh-check
Last active September 26, 2024 09:12
gh-check: speed test to known GitHub IPs
#!/usr/bin/python3
import asyncio
import time
import socket
import argparse
import aiohttp
class MyConnector(aiohttp.TCPConnector):

channel operator quick reference

direct discussion about administrative action away from the main channel and into #reddit-diabetes-ops to minimise disruption. our -ops channel is the place where users should come to ask for our help. examples:

  • any sort of operator request or discussion of channel administration in the main channel
  • PMs asking why a ban was set
  • reports of harassment (unless the user is confiding in you)
  • any request for operator action

changing channel access permissions

@guohai
guohai / bitmap_gen_test.c
Created June 24, 2013 06:29
sample code for generate a bitmap image at x86_64 GNU/Linux
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// for Linux platform, plz make sure the size of data type is correct for BMP spec.
// if you use this on Windows or other platforms, plz pay attention to this.
typedef int LONG;
typedef unsigned char BYTE;
typedef unsigned int DWORD;
typedef unsigned short WORD;