Created from the plain text reference card on orgmode.org Download this file, and open it in Emacs org-mode!
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
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
I had to also do the following items to play nicely with SELinux: | |
Restore the proper SELinux labels on smb.conf and my smbusers: | |
# chcon system_u:object_r:samba_etc_t:s0 smb.conf | |
# chcon system_u:object_r:samba_etc_t:s0 smbusers | |
Allow Samba to access home dirs: | |
# setsebool -P samba_enable_home_dirs 1 |
Configure the maven-compiler-plugin to use the same character encoding that your source files are encoded in (e.g):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source> <!-- jdk version -->
1.8
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
To add a new layout to your system, an example is how I added the pan-Cyrillic keyboard layout – I appended /usr/share/X11/xkb/symbols/ru by it, and as I wanted to use capslock as a fifth-level-modifier, which strangely nobody had defined until then, I included the given definition for the capslock key as fifth-level modifier in the /usr/share/X11/xkb/symbols/level5 file. | |
For registering the pan-Cyrillic keyboard layout, I had to include the listed XML data for the files /usr/share/X11/xkb/rules/base.extras.xml and /usr/share/X11/xkb/rules/evdev.extras.xml as a variant under the “ru” layout, that is to say nested in its <variantList> element. | |
Currently there is no way to add keyboard layouts without manipulating package-controlled system files, so you have to repeat these steps after each reinstallation of the X keyboard configuration files (written by the package xkeyboard-config on Arch Linux and derivates). | |
For this specific keyboard layout presented here this is not necessary since I contributed the layou |
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
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone |
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
<layout> | |
<configItem> | |
<name>trans</name> | |
<description>International Phonetic Alphabet</description> | |
</configItem> | |
<variantList/> | |
</layout> |
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
\documentclass[sigconf,anonymous=$anonymous$]{acmart} | |
\usepackage{booktabs} | |
\usepackage{caption} % http://mirror.easyname.at/ctan/macros/latex/contrib/caption/caption-eng.pdf | |
\usepackage{balance} % balancing bibstyles as per request in accepted submission | |
\usepackage{graphicx} | |
% We will generate all images so they have a width \maxwidth. This means | |
% that they will get their normal width if they fit onto the page, but | |
% are scaled down if they would overflow the margins. |
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
(defun jib/calc-speaking-time () | |
"Calculate how long it would take me to speak aloud the selection." | |
(interactive) | |
(if (use-region-p) (let* ((wpm 150) | |
(word-count (float (count-words-region (region-beginning) (region-end)))) | |
(raw-time (* 60 (/ word-count wpm)))) | |
(message "%s minutes, %s seconds to speak at %d wpm" | |
(format-seconds "%m" raw-time) | |
(floor(mod raw-time 60)) wpm)) | |
(error "Error: select a region."))) |
OlderNewer