<ALT+SHIFT+ENTER>
Toggle Fullscreen<CTRL+K, O>
Switch between header/source<CTRL+,>
quick open & navitate to anything (by filename, type name, ...)<CTRL+T>
quick open any<CTRL+G>
Go to to line- `` jump to matching brace/bracket
trapni@windsor ~/local/src/rubinius $ git nuke | |
Removing config.rb | |
Removing configure.log | |
Removing lib/readline.rb | |
Removing lib/rubinius/build_config.rb | |
Removing vm/capi/18/include/config.h | |
Removing vm/capi/18/include/rbx_config.h | |
Removing vm/capi/19/include/config.h | |
Removing vm/capi/19/include/rbx_config.h | |
Removing vm/gen/ |
Girlfriend/BSD | |
Login: love | |
Password: | |
Login incorrect | |
Login: boyfriend | |
Password: |
/** | |
* compile: g++ -std=c++0x -o dnssd dnssd.cpp -lresolv | |
* Your g++ compiler must have lambda support | |
* | |
* Code based on examples from: | |
* http://www.cs.columbia.edu/~zwb/project/dotslash/dots_apache/dnsc.c | |
* http://people.samba.org/bzr/jerry/slag/unix/query-srv.c | |
*/ | |
#include <arpa/nameser.h> | |
#include <functional> |
HMODULE hUser = GetModuleHandleA("user32.dll"); | |
if (hUser) | |
{ | |
pfnSetWindowCompositionAttribute setWindowCompositionAttribute = (pfnSetWindowCompositionAttribute)GetProcAddress(hUser, "SetWindowCompositionAttribute"); | |
if (setWindowCompositionAttribute) | |
{ | |
ACCENT_POLICY accent = { ACCENT_ENABLE_BLURBEHIND, 0, 0, 0 }; | |
WINDOWCOMPOSITIONATTRIBDATA data; | |
data.Attrib = WCA_ACCENT_POLICY; | |
data.pvData = &accent; |
This guide is for 'linuxing-up' Windows as a development environment; it focuses on setting up [WSL], an Ubuntu Hyper-V virtual machine, [wsltty] (a nice terminal emulator) and various tweaks.
These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
ABSOLUTELY NO WARRANTY. | |
If you are still reading let's carry on with the code. | |
sudo apt-get update && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
Github provides no facility to do this via the UI. This is sad, because it would be extremely useful in order to draft something before publishing it. It would also be trivial for them to implement. Never mind; here's how to do it manually:
- Get the "Clone this Gist" text from the left-hand side of the private Gist, e.g.
https://gist.github.com/b9cc265982870c091a1e.git
, and extract the IDb9cc265982870c091a1e
. - Go to https://gist.github.com/ and create a dummy new public Gist.
- Get the "Clone this Gist" text from the left-hand side, e.g.
https://gist.github.com/8270253.git
, and extract the ID8270253
. git clone git@gist.github.com:b9cc265982870c091a1e tmp-dir && cd tmp-dir && git push -f git@gist.github.com:8270253.git
I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.
If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:
- The contents of
/etc/os-release
, if it exists
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.