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/sh | |
sudo apt install -y libxdamage1 libxcb-glx0 libglapi-mesa libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-sync1 libxshmfence1 libxxf86vm1 libxfixes3 | |
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
wget -O ~/bin/dropbox.py 'https://www.dropbox.com/download?dl=packages/dropbox.py' | |
chmod +x ~/bin/dropbox.py | |
~/.dropbox-dist/dropboxd | |
# ~/bin/dropbox.py autostart |
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
#!/usr/bin/python3 | |
import string | |
import random | |
import itertools | |
import argparse | |
IDENT_FIRST = string.ascii_letters + '_' | |
IDENT_LAST = string.ascii_letters + string.digits + '_' |
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 com.fasterxml.jackson.core.type.TypeReference | |
import io.vertx.core.AsyncResult | |
import io.vertx.core.Handler | |
import io.vertx.core.Vertx | |
import io.vertx.core.eventbus.Message | |
import io.vertx.core.json.Json | |
import io.vertx.core.logging.Logger | |
import io.vertx.core.logging.LoggerFactory | |
import io.vertx.kotlin.coroutines.CoroutineVerticle | |
import io.vertx.kotlin.coroutines.dispatcher |
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
fun <Req, Resp> asFuture(func: (Req, ActionListener<Resp>, Array<out Header>) -> Unit, req: Req, vararg headers: Header) = Future.future<Resp>().apply { | |
func(req, object : ActionListener<Resp> { | |
override fun onFailure(e: Exception?) { | |
fail(e) | |
} | |
override fun onResponse(response: Resp?) { | |
complete(response) | |
} | |
}, headers) |
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
# -*- coding: utf-8 -*- | |
# @Time : 2017/12/23 16:07 | |
# @Author : ddvv | |
# @Site : | |
# @File : douyincore.py | |
# @Software: PyCharm | |
import hashlib | |
class calcSig(object): |
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 | |
# Originally written by Ralf Kistner <[email protected]>, but placed in the public domain | |
set +e | |
bootanim="" | |
failcounter=0 | |
timeout_in_sec=360 |
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
adb shell content query --uri content://settings/secure --where "name=\'android_id\'" | |
adb shell content delete --uri content://settings/secure --where "name=\'android_id\'" | |
adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:7373de1e9e9670c2 |
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
package cn.azure.chatbot.classifier | |
import com.github.jfasttext.JFastText | |
import com.huaban.analysis.jieba.JiebaSegmenter | |
import com.huaban.analysis.jieba.JiebaSegmenter.SegMode | |
import com.intel.analytics.bigdl.nn.Module | |
import com.intel.analytics.bigdl.nn.abstractnn.{AbstractModule, Activity} | |
import com.intel.analytics.bigdl.tensor.Tensor | |
import org.slf4j.LoggerFactory |
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
Windows.10.and.Office.2016.gVLK | |
##################################################################### | |
# Install/Uninstall keys # | |
##################################################################### | |
1.) Uninstall the current product by entering the “uninstall product key” extension: | |
slmgr.vbs /upk | |
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10” |
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
drop table comment_f; | |
drop table comment_hastag_tag_f; | |
drop table forum_f; | |
drop table forum_hasmember_person_f; | |
drop table forum_hastag_tag_f; | |
drop table organisation_f; | |
drop table person_f; | |
drop table person_email_emailaddress_f; | |
drop table person_hasinterest_tag_f; | |
drop table person_knows_person_f; |