Skip to content

Instantly share code, notes, and snippets.

snowman snowman

Block or report user

Report or block snowman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@snowman
snowman / chars.cs
Last active Apr 2, 2020
C sharp basic #newbie
View chars.cs
// chars.cs
// A listing to print out a number of characters and their numbers
//----------------------------------------------------------------
using System;
class chars
{
public static void Main()
{
View Print_spiral_matrix.c
#include <stdio.h>
//
// o n
// ---------------------->
// | . . . . .
// | . . . . .
// | . . . . .
// | . . . . .
// | . . . . .
@snowman
snowman / weixin.md
Last active Apr 1, 2020 — forked from Josscii/weixin.md
wechat_spider 原理扫盲帖
View weixin.md

wechat_spider 原理扫盲帖

这篇文章旨在为刚接触 wechat_spider 的人提供一个快速了解这个项目基本原理的途径。

思路

首先我们随便进入一个微信公众号详情页。

@snowman
snowman / cloudSettings
Last active Jan 8, 2020
VS code extensions
View cloudSettings
{"lastUpload":"2020-01-08T02:05:30.029Z","extensionVersion":"v3.4.3"}
@snowman
snowman / styles.css
Last active Dec 25, 2019 — forked from patik/styles.css
Numbered Headings in Markdown via CSS
View styles.css
h1 {
counter-reset: h2counter;
}
h2 {
counter-reset: h3counter;
}
h3 {
counter-reset: h4counter;
}
h4 {
@snowman
snowman / makepkg_overview.rst
Created Dec 20, 2019 — forked from Earnestly/makepkg_overview.rst
A brief overview of the process involved in creating a pacman package.
View makepkg_overview.rst

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@snowman
snowman / gpg-import-and-export-instructions.md
Created Nov 13, 2019 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys
View gpg-import-and-export-instructions.md

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
# or, instead of backing up trustdb...
@snowman
snowman / mpvhistory.lua
Created Nov 12, 2019 — forked from garoto/mpvhistory.lua
Simple media logger Lua script for mpv
View mpvhistory.lua
-- Not my code: originally from https://redd.it/3t6s7k (author deleted; failed to ask for permission).
-- Only tested on Windows. Date is set to dd/mmm/yy and time to machine-wide format.
-- Save as "mpvhistory.lua" in your mpv scripts dir. Log will be saved to mpv default config directory.
-- Make sure to leave a comment if you make any improvements/changes to the script!
local HISTFILE = (os.getenv("APPDATA") or os.getenv("HOME").."/.config").."/mpv/mpvhistory.log";
mp.register_event("file-loaded", function()
local title, logfile;
View jqzoom
/*!
* jQzoom Evolution Library v2.3 - Javascript Image magnifier
* http://www.mind-projects.it
*
* Copyright 2011, Engineer Marco Renzi
* Licensed under the BSD license.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
View wechat2txt.py
import os
import sys
import re
import hashlib
import csv
import time
import locale
import getopt
You can’t perform that action at this time.