For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.
This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.
It's built for the Hugo static site generator, but could be adopted to function with any json index.
To see it in action, go to craigmod.com and press CMD-/ and start typing.
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
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/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| # | |
| # Update 2013-06-24: added -w0 option to prevent truncated lines | |
| require 'base64' | |
| data=`ioreg -l -w0 -d0 -r -c AppleDisplay` |
for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.
- open
Terminal, go to the dir :cd /Applications/Beyond Compare.app/Contents/MacOS - change the name
BComparetoBCompare.bak:mv BCompare BCompare.bak - touch a file name
BCompare, andchmod a+ux BCompare:touch BCompare && chmod a+ux BCompare - open
BComparewith text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
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
| import tinify | |
| import os | |
| import os.path | |
| import sys | |
| print "file name:", sys.argv[0] | |
| for i in range(1, len(sys.argv)): | |
| print "para:", i, sys.argv[i] | |
| sourceFilePath = sys.argv[1] # source path |
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
| # code is from http://helw.net/2015/07/19/migrating-to-hugo-from-hexo/ | |
| # Ran fine on Windows 10 with MSysGit installed | |
| # cd to directory with all the md files from Hexo | |
| # bash hexo2hugo.sh | |
| --- | |
| # ensure dates don't start with single quotes | |
| for file in *; do awk '{ | |
| if ($1 == "date:") { | |
| gsub("\047", "", $0); print; | |
| } else { |
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
| <?xml version="1.1" encoding="UTF-8"?> | |
| <!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
| <!-- | |
| Data generated Wed Mar 23 01:35:41 2022 | |
| Generated by kluchrtoxml_64 build 203 | |
| --> | |
| <!--Last edited by Ukelele version 351 on 2022-03-23 at 01:45 (GMT+8)--> |
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 python | |
| # coding: utf-8 | |
| ''' | |
| auto switch keyboard between different applications | |
| if you want to change the app list, modify the var 'ignore_list' | |
| ''' | |
| from AppKit import NSWorkspace, NSWorkspaceDidActivateApplicationNotification, NSWorkspaceApplicationKey |
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
| [General] | |
| loglevel = notify | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| # dns-server = 119.29.29.29,223.5.5.5,114.114.115.115 | |
| # external-controller-access = PASSWORD@0.0.0.0:6155 | |
| # ipv6 = true | |
| // REMEMBER TO CHANGE THE external-controller-access' PASSWORD |
NewerOlder

