https://github.com/medcl/elasticsearch-analysis-ik/archive/v1.2.6.zip
unzip v1.2.6.zip
sudo -i
cd /usr/share/elasticsearch
cd plugins
bin/plugin -install medcl/elasticsearch-analysis-ik/1.2.6
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
# -*- coding: utf-8 -*- | |
import oss2 | |
import json | |
from wand.image import Image | |
from wand.drawing import Drawing | |
from wand.color import Color | |
import base64 | |
import requests |
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
package main | |
import ( | |
"bytes" | |
"crypto/hmac" | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/base64" | |
"encoding/hex" | |
"encoding/json" |
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 faster_whisper import WhisperModel | |
from fastapi import FastAPI | |
import requests | |
import os | |
import time | |
model_size = "large-v2" | |
# Run on GPU with FP16 | |
model = WhisperModel(model_size, device="cuda", compute_type="float16") |
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
#!/bin/sh | |
echo "Subject:php error from q2.glz8.com | |
" > /tmp/mail_temp | |
tail -n 10 /var/log/php/php-error.log >> /tmp/mail_temp | |
sendmail xurenlu@glz8.com < /tmp/mail_temp |
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 gulp = require("gulp"); | |
var process = require('child_process'); | |
gulp.task('send', function(){ | |
process.exec('/home/x/bin/sendtokaifa', | |
function (error, stdout, stderr) { | |
if (error !== null) { | |
console.log('[send]exec error: ' + error); | |
}else{ | |
console.log("send finished"); | |
} |
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
/** | |
* Created by r on 14/12/17. | |
*/ | |
/* MooTools: the javascript framework. license: MIT-style license. copyright: Copyright (c) 2006-2014 [Valerio Proietti](http://mad4milk.net/).*/ | |
/* | |
Web Build: http://mootools.net/core/builder/e426a9ae7167c5807b173d5deff673fc | |
*/ | |
/* |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<!--<script src="bower_components/requirejs/require.js"></script>--> | |
<script src="./bower_components/jquery/dist/jquery.js"></script> | |
<script src="./bower_components/react/react-with-addons.js"></script> | |
<script src="bower_components/react/JSXTransformer.js"></script> | |
<script src="bower_components/react-bootstrap/react-bootstrap.js"></script> |
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 serverOutput =[ { | |
"tag":"bootpanel", | |
"children": [ | |
{ | |
"tag": "panel", | |
"children": [ | |
{ | |
"tag": "button", | |
"class": ["btn-primary"], | |
"children": "Submit" |
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
#!/bin/bash | |
while true | |
locked="false" | |
do | |
pair=`bluetoothstatus |grep "renlu" |awk -F ":" '{print $1}'` | |
if [ "${pair}" != "paired" ] ;then | |
echo "connected:" | |
else | |
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend | |
echo "paired:" |
NewerOlder