Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

snowman snowman

💭
I may be slow to respond.
View GitHub Profile
@snowman
snowman / README.md
Created Feb 1, 2021 — forked from joyrexus/README.md
Perl one-liners
View README.md

Hi:

perl -e 'print "hello world!\n"'

A simple filter:

perl -ne 'print if /REGEX/'

Filter out blank lines (in place):

@snowman
snowman / background.html
Created Dec 12, 2020 — forked from srsudar/background.html
Pasting from the system clipboard using a Chrome extension.
View background.html
<!DOCTYPE html>
<html>
<head>
<script src="background.js"></script>
</head>
<body>
<textarea id="sandbox"></textarea>
</body>
@snowman
snowman / m3u8-to-mp4.md
Created Dec 9, 2020 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg
View m3u8-to-mp4.md

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@snowman
snowman / For Mac 4.2.6 unlimited trial.md
Created Dec 7, 2020 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux
View For Mac 4.2.6 unlimited trial.md

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@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 20, 2021
VS code extensions
View cloudSettings
{"lastUpload":"2021-01-20T10:20:09.372Z","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