Raw notes about ~/.xprofile script.
Upstream DM which executes ~/.xprofile file in Xsession script:
- GDM (Gnome): see
Xsession.in - KDM (KDE 4): see
genkdmconf.c
| (setq TeX-auto-save t) | |
| (setq TeX-parse-self t) | |
| (setq TeX-save-query nil) | |
| ;(setq TeX-PDF-mode t) | |
| (require 'flymake) | |
| (defun flymake-get-tex-args (file-name) | |
| (list "pdflatex" | |
| (list "-file-line-error" "-draftmode" "-interaction=nonstopmode" file-name))) |
| { | |
| "translatorID": "12345", | |
| "label": "BibTeX CiteKey-only Exporter", | |
| "creator": "Simon Kornblith and Richard Karnesky with tweaks by Tan", | |
| "target": "bib", | |
| "minVersion": "2.1.9", | |
| "maxVersion": "", | |
| "priority": 200, | |
| "inRepository": false, | |
| "translatorType": 3, |
Creating a service to startup at BeagleBone Black boot time:
Create a shell script such as /usr/bin/myFancyBash.sh:
#!/bin/bash
# this could be any runnable code or shell script, really
/usr/bin/myFancyPython.py
Note that the first line is critical.
This is a Pandoc template to generate reveal.js slideshows.
Pandoc is a "universal markup converter" you can run from the command line to convert a simple, plain text file into a beautifully formatted PDF, .docx, HTML, LaTeX, slideshows… the list goes on.
reveal.js is a CSS and JavaScript framework for creating beautiful presentations in HTML5, designed by Hakim El Hattab.
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat May 3 10:21:21 2014 | |
| @author: umb | |
| """ | |
| import numpy as np | |
| class GMM: |
| #!/bin/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |
| #!/bin/bash | |
| # | |
| # Example of how to parse short/long options with 'getopt' | |
| # | |
| # getopt recognize the params and put unrecognize params after '--', so '--' is a very important flag for latter work. | |
| # -o for options like: -v -h -n -s | |
| # --long for options like: --verbose --dry-run --help --stack-szie | |
| # and which options followed by a ':' will have format like -s 3, --stack-size 4 or -s=3 --stack-size=4 | |
| # -n: name of the shell script |
| #!/usr/bin/python3 | |
| # | |
| # usage: python3 docker_descendants.py <image_id> ... | |
| import sys | |
| from subprocess import check_output | |
| def main(images): | |
| image_ids = set(images) |
| #!/usr/bin/env python | |
| import roslib | |
| roslib.load_manifest("sensor_msgs") | |
| roslib.load_manifest("message_filters") | |
| roslib.load_manifest("rxtools") | |
| import rospy | |
| import rxtools | |
| import rxtools.rosplot | |
| import sys |