Skip to content

Instantly share code, notes, and snippets.

View dclong's full-sized avatar
💭
I may be slow to respond.

Ben Chuanlong Du dclong

💭
I may be slow to respond.
View GitHub Profile
@dclong
dclong / terminal.txt
Created February 13, 2024 16:03 — forked from joulgs/terminal.txt
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@dclong
dclong / github-actions-notes.md
Created April 4, 2023 03:46 — forked from br3ndonland/github-actions-notes.md
Getting the Gist of GitHub Actions
@dclong
dclong / shell_output.go
Created July 12, 2022 06:09 — forked from hivefans/shell_output.go
get the realtime output for a shell command in golang|-|{"files":{"shell_output.go":{"env":"plain"}},"tag":"bigdata"}
package main
import (
"bufio"
"fmt"
"io"
"os"
"os/exec"
"strings"
)
@dclong
dclong / main.py
Created September 22, 2021 21:29 — forked from littlecodersh/main.py
Main script behind itchat robot
#coding=utf8
import itchat
# tuling plugin can be get here:
# https://github.com/littlecodersh/EasierLife/tree/master/Plugins/Tuling
from tuling import get_response
@itchat.msg_register('Text')
def text_reply(msg):
if u'作者' in msg['Text'] or u'主人' in msg['Text']:
return u'你可以在这里了解他:https://github.com/littlecodersh'
@dclong
dclong / embedimages.py
Created May 2, 2018 06:54 — forked from soamaven/embedimages.py
Parser and converter for jupyter markdown cells for nbconvert
"""HTML Image handling for embedded images in markdown cells."""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------