most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | |
typeof define === 'function' && define.amd ? define(['exports'], factory) : | |
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.qiankun = {})); | |
}(this, (function (exports) { 'use strict'; | |
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | |
function getDefaultExportFromCjs (x) { | |
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; |
function suffix(s1, s2) { | |
return s1.indexOf(s2, s1.length - s2.length) !== -1 | |
}; | |
function FindProxyForURL(url, host) { | |
var P = "PROXY 104.236.151.182:25;"; | |
var D = "DIRECT"; | |
if (suffix(host, '.cn') || isPlainHostName(host) || suffix(host, '.local') || suffix(host, '.xip.io') || suffix(host, '.dev') || /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i.test(host)) return D; | |
if (suffix(host, 'twimg.com')) return P; | |
if (suffix(host, 'googleusercontent.com')) return P; |
#! /bin/bash | |
#mutt 最好用的电子邮件程序 | |
sudo apt-get -y install msmtp-mta msmtp mutt getmail4 procmail lynx wv w3m | |
mkdir -p ~/Mail | |
(cd ~/Mail && touch inbox sent postponed) | |
touch ~/.msmtprc | |
chmod -v 600 ~/.msmtprc | |
chmod -v 700 ~/.getmail |
/** | |
* ☆★☆★☆★☆★☆★☆JavaScript草稿集☆★☆★☆★☆★☆★☆ | |
* | |
* By hustskyking | |
*/ | |
//★JQuery★<!--<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>//--> | |
//★★★★★★★★公共部分★★★★★★★★ | |
function printf(obj) { |
// | |
// Based on github.com/cloudhead/http-console | |
// An attempt at a simplified readline example. | |
// | |
var readline = require('readline') | |
, util = require('util') | |
, rl = readline.createInterface(process.stdin, process.stdout, completer) | |
//jquery useage | |
var element = document.getElementById("wem"); | |
var element = $('#wem'); | |
var elements = document.getElementByClassName('bar'); | |
var element = $('.bar'); | |
var elements = document.getElementByTagName('p'); | |
var elements = $('p'); |
var http = require('http'); | |
var net = require('net'); | |
var url = require('url'); | |
// Create an HTTP tunneling proxy | |
var proxy = http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('okay'); | |
}); | |
proxy.on('connect', function(req, cltSocket, head) { |
<div id="world" class="world"> | |
<h1 class="ground">ground</h1> | |
<ul class="building block-1">Building | |
<li class="top">roof</li> | |
<li class="west">west wall</li> | |
<li class="north">north wall</li> | |
<li class="east">east wall</li> |
<!-- content to be placed inside <body>…</body> --> | |
<div class="news"> | |
<img src="http://aliceui.com/wp-content/uploads/2011/12/aliceui-sl-gradient.png"/> | |
<p>Some text</p> | |
<div class="clear"></div> | |
</div> |