-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
This file contains hidden or 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
| #!/usr/bin/osascript | |
| -- tell application "loginwindow" to «event aevtrrst» | |
| tell application "loginwindow" to «event aevtrsdn» | |
| tell application "System Events" | |
| tell window 1 of process "loginwindow" | |
| click checkbox 1 | |
| -- click button 2 | |
| end tell |
This file contains hidden or 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
| #server.modules += ( "mod_rewrite") | |
| # Workaround to have a working reverse-proxy that matches an URL does URL rewriting in Ligghtpd. | |
| # | |
| # Ligtthpd 1.4.28 cannot perform both matching and URL rewriting at the same time. | |
| # Therefore we need to define 2 proxies, one does the matching and bounce the request | |
| # to the other one, in charge of rewriting the URL before proxying the request to the target server. | |
| # | |
| # More about this here: | |
| # http://redmine.lighttpd.net/issues/164#note-9 |
This file contains hidden or 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
| # File Transfer for Pythonista | |
| # ============================ | |
| # This script allows you to transfer Python files from | |
| # and to Pythonista via local Wifi. | |
| # It starts a basic HTTP server that you can access | |
| # as a web page from your browser. | |
| # When you upload a file that already exists, it is | |
| # renamed automatically. | |
| # From Pythonista's settings, you can add this script | |
| # to the actions menu of the editor for quick access. |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| SILENT = ENV['SL_SILENT'] =~ /false/i ? false : true || true | |
| VERSION = '2.2.23' | |
| # SearchLink by Brett Terpstra 2015 <http://brettterpstra.com/projects/searchlink/> | |
| # MIT License, please maintain attribution | |
| require 'net/https' | |
| require 'uri' |
This file contains hidden or 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
| #!/usr/bin/perl | |
| # Emacs starter for Emacs mac port | |
| # Thanks to Aquamacs Project and David Reitter | |
| my $args = ""; | |
| my $tmpfiles = ""; | |
| for my $f (@ARGV) { |
This file contains hidden or 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
| ### Based on: https://gist.github.com/b0644f5ed1d94bd32805 | |
| ### This version strips unicode characters from the downloaded script | |
| ### to work around the currently limited unicode support of the editor | |
| ### module. | |
| # This script downloads and opens a Gist from a URL in the clipboard. | |
| # It's meant to be put in the editor's actions menu. | |
| # | |
| # It works with "raw" and "web" gist URLs, but not with gists that | |
| # contain multiple files or non-Python files. |
This file contains hidden or 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 markdown-preview-file () | |
| "run Marked on the current file and revert the buffer" | |
| (interactive) | |
| (shell-command | |
| (format "open -a /Applications/Marked.app %s" | |
| (shell-quote-argument (buffer-file-name)))) | |
| ) | |
| (global-set-key (kbd "C-c m") 'markdown-preview-file) |
OlderNewer
