application:about
application:show-preferences
application:show-settings
application:quit
application:hide
application:hide-other-applications
| #!/bin/bash | |
| cd /path/to/files | |
| find . -type f | wc -l | |
| find . -type f -size +1M | wc -l | |
| find . -type f -size +10M | wc -l | |
| find . -type f -size +1G | wc -l | |
| find . -type f -size +10G | wc -l |
| from imaplib import IMAP4_SSL | |
| import email as em | |
| from email.utils import parsedate, parsedate_tz | |
| from email.parser import HeaderParser | |
| class GmailAccount(object): | |
| def __init__(self, username=None, password=None, folder=None): | |
| self.username = username | |
| self.password = password | |
| self.folder = folder |
| # Based off of https://github.com/jupyter/notebook/blob/master/docs/source/extending/savehooks.rst | |
| import io | |
| import os | |
| from notebook.utils import to_api_path | |
| _script_exporter = None | |
| _html_exporter = None | |
| def script_post_save(model, os_path, contents_manager, **kwargs): |
| #! /bin/bash | |
| ## Taken from: | |
| ## https://zxq9.com/archives/795 | |
| # reference for most commonly requested bash timestamps | |
| cat << EOD | |
| Format/result | Command | Output | |
| ------------------------------+----------------------------+------------------------------ |
| (* To the extent possible under law, Rob Mayoff has waived all copyright and related or neighboring rights to “AppleScript to make Google Chrome open/reload a URL”. This work is published from: United States. https://creativecommons.org/publicdomain/zero/1.0/ *) | |
| tell application "Google Chrome" | |
| activate | |
| set theUrl to "http://tycho.usno.navy.mil/cgi-bin/timer.pl" | |
| if (count every window) = 0 then | |
| make new window | |
| end if | |
| set found to false |
[aculich@sl7 ~]$ screen
Cannot make directory '/var/run/screen': Permission denied
[aculich@sl7 ~]$ ls -lad /var/run/screen
ls: cannot access /var/run/screen: No such file or directory
[aculich@sl7 ~]$ ls -lad /var/run/
drwxr-xr-x 21 root root 800 Aug 25 16:05 /var/run/| #!/bin/bash | |
| ## example of using jq to extract journals from | |
| ## the AMiner Open Academic Graph: | |
| ## https://aminer.org/open-academic-graph | |
| wget https://academicgraphv1wu.blob.core.windows.net/aminer/aminer_papers_0.zip | |
| unzip -p aminer_papers_0.zip aminer_papers_0.txt > aminer_papers_0.txt | |
| jq . aminer_papers_0.txt -C | less -r | |
| jq .venue aminer_papers_0.txt -C | wc -l |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| # see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
| # core | |
| brew install coreutils | |
| # key commands | |
| brew install binutils | |
| brew install diffutils | |
| brew install ed --default-names | |
| brew install findutils --with-default-names |