Chrome的地址栏自动补齐功能提供了非常方便的地址预测功能 浏览器可以通过用户当前输入的字符来与用户的访问历史与书签匹配 然后在下拉栏中为用提供准确的补齐方案排名, 提高用户访问效率
在大部分情况下, 这个功能是非常好用的 但是有时, 出于某些原因, 用户需要移除某个记录(网址无法访问,网址更换域名等) Chrome提供了组合键
Shift+Delete
来删除地址栏下拉记录中的某个网址
import 'dart:convert' show utf8; | |
/// Decodes a vis-encoded syslog string to a UTF-8 representation. | |
/// | |
/// Apple's syslog logs are encoded in 7-bit form. Input bytes are encoded as follows: | |
/// 1. 0x00 to 0x19: non-printing range. Some ignored, some encoded as <...>. | |
/// 2. 0x20 to 0x7f: as-is, with the exception of 0x5c (backslash). | |
/// 3. 0x5c (backslash): octal representation \134. | |
/// 4. 0x80 to 0x9f: \M^x (using control-character notation for range 0x00 to 0x40). | |
/// 5. 0xa0: octal representation \240. |
var CryptoJS = require('crypto-js') | |
var request = require('request-promise') | |
/* | |
* npm install crypto-js request-promise request | |
* node wx_t1t_hack.js | |
*/ | |
// export function testEncription(msg, fullKey) { | |
// var fullKey = fullKey.slice(0, 16) |
#!/bin/bash | |
# Run cputhrottle for a list of applications in order to limit their CPU usage. | |
# This script needs `pidof` and `cputhrottle` installed, which can be installed from homebrew. | |
# NOTE: This script was tested on MacOS only. | |
if [[ $EUID > 0 ]]; then | |
echo "Please run this script as root/sudo" | |
exit 1 | |
fi |
{-# LANGUAGE OverloadedStrings #-} | |
module DGPHParser(parseDgph) where | |
import qualified Data.Attoparsec.ByteString as A | |
import qualified Data.ByteString as B | |
import Data.Bits | |
import Data.Foldable (foldl') | |
import qualified Data.ByteString as B | |
import qualified Data.Attoparsec.ByteString as A |
What xcode project/workspace file we're using. If you specify a project on the command-line and that project has an associated workspace, the project is still aware of its existence within the workspace. As an example, worspace level schemes will be available to xcodebuild even if you specify a project on the command line.
Specify the scheme to use for build. Schemes specify multiple build/test targets along with environment args and command line parameters. Schemes must be marked "shared" in the xcode UI in order to be available to xcodebuild. For any particular build/test action there is a default configuration when you use a scheme from the Xcode UI.
--- src/arch/ArchHooks/ArchHooks.h.orig | |
+++ src/arch/ArchHooks/ArchHooks.h | |
@@ -1,6 +1,8 @@ | |
#ifndef ARCH_HOOKS_H | |
#define ARCH_HOOKS_H | |
+#include <ctime> | |
+ | |
struct lua_State; | |
class ArchHooks |
var readline = require('readline'), | |
fs = require('fs'); | |
var LinkMap = function(filePath) { | |
this.files = [] | |
this.filePath = filePath | |
} | |
LinkMap.prototype = { | |
start: function(cb) { |
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
#!/bin/bash | |
echo Building Google Protobuf for Mac OS X / iOS. | |
echo Use 'tail -f build.log' to monitor progress. | |
( | |
VERSION=2.6.1 | |
DARWIN_RELEASE=`uname -r` | |
CORES=`sysctl hw.ncpu | awk '{print $2}'` | |
#PREFIX=`pwd`/protobuf |