- Install x86_64-w64-mingw32 tools to build z3 & its Python bindings
- Install mingw-w64-cross-binutils (to fix AR missing)
- `pacman -S pacman -S mingw-w64-cross-binutils`
- Explicitly add ‘.exe’ extension to CXX/CC/AR
- and explicitly export them!
- `export CXX=x86_64-w64-mingw32-g++.exe CC=x86_64-w64-mingw32-gcc.exe AR=x86_64-w64-mingw32-ar.exe`
- Add /opt/bin to PATH
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
find . -type f -name "*.org" -exec sed -i '' 's/old/new/g' {} + |
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 python | |
import sys | |
# Source: https://github.com/dwyl/english-words/blob/master/words_alpha.txt | |
WORD_FILE="words_alpha.txt" | |
def words_all(word_file=WORD_FILE): | |
lines = open(word_file).readlines() |
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
ffmpeg -i INPUT.MOV -c copy -reset_timestamps 1 -segment_time 160 -f segment OUTPUT%03d.MP4 |
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
# Func: Start an SSH tunnel (autossh) to a server $1 and map it to a | |
# local port $2 (default to 8888), which can be used as a SOCK. Start | |
# a HTTP proxy server (polipo) with proxy port $3 (default to 8123) | |
# and point it to the SSH tunnel. | |
# | |
# See also: | |
# autossh (http://www.harding.motd.ca/autossh/) | |
# polipo (https://www.irif.univ-paris-diderot.fr/~jch/software/polipo/) | |
# | |
# Usages: |
Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!
-
Download the latest MSYS2 from this download page.
-
Install MSYS2 to, for example,
C:\msys2
(make sure no space in path to avoid unwanted problems). -
Optionally prettify the MSYS2 console
mintty
with~/.minttyrc
to make it more pleasing to eyes. Thanks to this awesome theme!
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Sign in to Yahoo!</title> | |
<meta http-equiv="Pragma" content="no-cache"> | |
<meta http-equiv="Expires" content="0"> | |
<script type='text/javascript'> | |
var startTime = new Date().getTime(); |