Step 0: Open Automator, New Service.
Step 1: Drag out Run Shell Script action. Pass Input to STDIN
Step 2: This code:
open `gist`
This snippet tested on Yosemite 10.10.1 | |
1. Define your python3 directory (for example, "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/") | |
2. Download "http://download.qt-project.org/official_releases/qt/5.3/5.3.2/qt-opensource-mac-x64-clang-5.3.2.dmg" or any other new version of qt for mac and install it. | |
3. Download SIP sources here: http://www.riverbankcomputing.com/software/sip/download | |
4. Download PyQt5-gpl sources here: http://www.riverbankcomputing.com/software/pyqt/download5 | |
5. Go to your downloads by terminal (for example, "cd ~/Downloads") | |
6. tar xvf PyQt-gpl-5.3.2.tar.gz | |
7. tar xvf sip-4.16.4.tar.gz | |
8. cd sip-4.16.4/ |
#!/usr/bin/env python3 | |
import csv | |
import urllib.request | |
from bs4 import BeautifulSoup | |
BASE_URL = 'http://www.weblancer.net/projects/' |
'*** A simple MsWord->Markdown replacement macro by Kriss Rauhvargers, 2006.02.02. | |
'*** This tool does NOT implement all the markup specified in MarkDown definition by John Gruber, only | |
'*** the most simple things. These are: | |
'*** 1) Replaces all non-list paragraphs to ^p paragraph so MarkDown knows it is a stand-alone paragraph | |
'*** 2) Converts tables to text. In fact, tables get lost. | |
'*** 3) Adds a single indent to all indented paragraphs | |
'*** 4) Replaces all the text in italics to _text_ | |
'*** 5) Replaces all the text in bold to **text** | |
'*** 6) Replaces Heading1-6 to #..#Heading (Heading numbering gets lost) | |
'*** 7) Replaces bulleted lists with ^p * listitem ^p* listitem2... |
Options included below:
docker-compose
brew
This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew
any longer. Instead consider adding a barebones docker-compose.yml
for each project and run docker-compose up
to start each project's mysql service.
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.