Skip to content

Instantly share code, notes, and snippets.

@sszllx
sszllx / git-op.md
Last active March 28, 2020 05:12
[git-op] #git

添加tag

  • git tag -a v1.4 -m "my version 1.4"
  • git show v1.4
  • git push origin --tags

删除tag

  • git tag -d v1.4
  • git push origin :refs/tags/v1.4

Checkout tag

@sszllx
sszllx / dateToUnixstamp.go
Created March 26, 2020 03:54
[datetime to unix stamp] #go
layout := "01/02/2006 3:04:05 PM"
t, err := time.Parse(layout, "03/25/2020 00:00:00 AM")
@sszllx
sszllx / grep.sh
Last active March 20, 2020 10:22
[grep&sed]
grep -P 'arrive\x02$' arrive/car17-18 > arrive/car17-18a
sed -i 's/\x02/|/g' love-20-00h-10h-a.log
@sszllx
sszllx / tday.org
Last active November 18, 2019 00:33
[plantuml in org mode] #emacs
title Authentication Sequence

Alice->Bobbbbb: Authentication Request
note right of Bob: Bob thinks about it
Bob->Alice: Authentication Response

## C-c C-c ## show image inline

@sszllx
sszllx / fun_time.cpp
Last active October 8, 2019 03:21
function time consuming
#include <chrono>
using namespace chrono;
auto start = system_clock::now();
void check_start() {
start = system_clock::now();
}
void check_end(const char* memo) {
auto end = system_clock::now();

Keybase proof

I hereby claim:

  • I am sszllx on github.
  • I am sszllx (https://keybase.io/sszllx) on keybase.
  • I have a public key ASDJlYIfv51SZ89qkkamAT1o5EPQGd1x8ybPe9Je00ZcLQo

To claim this, I am signing this object: