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
| // 使用方法:在页面注入jquery 然后对应平台控制台中输入下面代码 | |
| // NO.1 Element icon 名字筛选 | |
| // 从页面 https://element.eleme.cn/2.13/#/zh-CN/component/icon 中注入执行 | |
| var iconNames = [] | |
| var iconElements = $('.icon-list li span.icon-name') | |
| iconElements.each(function(index){ | |
| iconNames.push(iconElements[index].innerText) | |
| }) |
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
| <?php | |
| // https://txc.qq.com webhook 转发到企业微信机器人 | |
| // 注意:请检查是否有配置IP白名单 | |
| // 群机器人URL | |
| $worker_webhook_url = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxx'; | |
| $input_log = '_txc_input.log'; | |
| $output_log = '_txc_output.log'; |
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
| /* source: https://francoisbest.com/posts/2020/dark-mode-for-excalidraw */ | |
| .excalidraw.light { | |
| filter: none; | |
| } | |
| /* simple */ | |
| .excalidraw.dark { | |
| filter: invert(100%); |
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
| <?php | |
| function encrypt_mcrypt($msg, $key, $iv = null) { | |
| $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); | |
| if (!$iv) { | |
| $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); | |
| } | |
| $pad = $iv_size - (strlen($msg) % $iv_size); | |
| $msg .= str_repeat(chr($pad), $pad); | |
| $encryptedMessage = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $msg, MCRYPT_MODE_CBC, $iv); | |
| return base64_encode($iv . $encryptedMessage); |
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
| <!DOCTYPE html> | |
| <html lang="zh-cmn-hans"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge, chrome=1"> | |
| <title>正在打开资源,请稍候……</title> | |
| </head> | |
| <body> | |
| </body> |
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
| var pf = window.webkitPerformance ? window.webkitPerformance : window.msPerformance; | |
| pf = (pf ? pf : window.performance); | |
| function sendVisitDuration() { | |
| var pfTime = pf ? pf.timing.domComplete : nowTime; | |
| var time = new Date().getTime() - pfTime; | |
| time = Math.ceil(time / 1000); | |
| if (time > 0) { | |
| var category = '0-2s'; | |
| if (time > 2 && time < 5) { |
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 android.content.Context; | |
| import android.content.pm.PackageInfo; | |
| import android.content.pm.PackageManager; | |
| /** | |
| * Author: jayin | |
| * Date: 11/19/15 | |
| */ | |
| public class AppManager { | |
| /** |
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
| #!/bin/bash | |
| SOURCES_FILE=/etc/apt/sources.list | |
| #back up | |
| cp /etc/apt/sources.list /etc/apt/sources.list.backup | |
| # 在原来的sources.list前插入阿里云的镜像链接 | |
| echo 'deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse' '\r\n' \ | |
| 'deb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse' '\r\n' \ |
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
| #!/bin/bash | |
| RC= ~/.bashrc | |
| sudo apt-get update | |
| sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev | |
| # install linuxbrew | |
| git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew |
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
| # install dependency | |
| apt-get install libxml2 libxml2-dev | |
| # download | |
| cd /tmp | |
| wget https://downloads.php.net/~ab/php-7.0.0RC4.tar.xz | |
| tar zxvf php-7.0.0RC4.tar.xz | |
| cd php-7.0.0RC4 | |
| # install |
NewerOlder