This file contains 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
From 51f8fcbe08a2a926d26bd608f2d6392623180962 Mon Sep 17 00:00:00 2001 | |
From: Jase <jase@JasedeiMac.lan> | |
Date: Sat, 20 Jan 2018 03:48:25 +0800 | |
Subject: [PATCH] Custom ALC269VB for Fujitsu D582 by unmric | |
ozd | |
--- | |
Resources/ALC269/Info.plist | 16 ++++++++++++++++ | |
Resources/ALC269/Platforms58.xml.zlib | Bin 0 -> 441 bytes | |
Resources/ALC269/layout58.xml.zlib | Bin 0 -> 1840 bytes |
This file contains 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
echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list | |
apt update | |
apt -t jessie-backports install shadowsocks-libev -y | |
cat > /etc/shadowsocks-libev/config.json <<EOF | |
{ | |
"server":"0.0.0.0", | |
"server_port":443, | |
"local_port":1080, | |
"password":"foobar!", |
This file contains 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 -*- | |
from __future__ import division, absolute_import, print_function, unicode_literals | |
try: | |
xrange | |
except NameError: | |
xrange = range |
This file contains 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
var fs = require('fs') | |
var sqljs = require('sql.js') | |
var sqlite3 = require('sqlite3').verbose() | |
var count = 1e5 | |
function randomString() { | |
var str = '' | |
var chars = 'abcdefghijklmnopqrstuvwxzyABCDEFGHIJKLMNOPQRSTUVWXZY0123456789 ' | |
for (var i = Math.random() * 100; i > 0; i--) { | |
str += chars[Math.floor(Math.random() * chars.length)] |
This file contains 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
var mousePosition = function(e) { | |
var offsetX = e.offsetX | |
, offsetY = e.offsetY | |
, targetOffset | |
// Calculate offsetX/Y if missing | |
if (offsetX == null) { | |
targetOffset = $(e.target).offset() | |
offsetX = e.pageX - targetOffset.left |
This file contains 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
<?php | |
add_filter( 'init', 'guest_page'); | |
function guest_page() { | |
if ( is_single() || ( is_home() && !is_front_page() ) || ( is_page() && !is_front_page() ) ) { | |
$_post = get_queried_object(); | |
$_post_ID = $_post->ID; |
This file contains 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
var miner = function() { | |
var postData, timeoutID, startLoop, stopLoop, printList | |
var list = [] | |
startLoop = function(delay) { | |
console.log('开始了辛勤的挖掘.') | |
timeoutID = setInterval(postData, delay || 1000 * 10) | |
} | |
stopLoop = function() { |
This file contains 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
<?php | |
function ResetJquery() { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', '//code.jquery.com/jquery-1.11.1.min.js', false, '1.11.1'); | |
} | |
add_action('init', 'ResetJquery'); |
This file contains 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
var cat = function (hands, feet) { | |
this.hands = hands | |
this.feet = feet | |
}, | |
fatcat = function (hands, feet, kg) { | |
this.kg = kg | |
console.log(this) | |
cat.call(this, hands, feet) |
This file contains 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
@echo off | |
setlocal | |
set ServicePath=HKLM\System\CurrentControlSet\Services | |
if "%1"=="-i" goto :create | |
if "%1"=="-d" goto :delete | |
goto :usage | |
:create |
NewerOlder