git | mercurial |
---|---|
git log | hg log -f |
git remote show | hg incoming |
git remote update | hg pull |
git branch | hg bookmarks |
git checkout $commit_id | hg update $changeset_id |
git add -p git commit |
hg commit -i |
git rebase -i $commit_id | hg histedit $changeset_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <pthread.h> | |
void * worker (void * o) { | |
int * p = NULL; | |
printf("%d\n", *p); | |
return NULL; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
echo 'Content-Type: video/mp4' | |
echo | |
ffmpeg -i 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov' -c:v copy -c:a copy -f mp4 -movflags frag_keyframe+empty_moov - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import asyncio | |
from concurrent.futures import ThreadPoolExecutor | |
import requests | |
import sys | |
def background_task(): | |
rv = requests.get('https://httpbin.org/get') |
OlderNewer