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.json | |
{ | |
"dependencies": { | |
"@polkadot/keyring": "^12.6.2", | |
"@polkadot/util-crypto": "^12.6.2" | |
} | |
} | |
// index.js | |
const { Keyring } = require('@polkadot/keyring'); |
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
diff --git a/cli.js b/cli.js | |
index b1de34de69cc46e98b25c9f3932571398bb1a9a8..df8a7fb747f305522c3d5f2c162144ae7f775a66 100644 | |
--- a/cli.js | |
+++ b/cli.js | |
@@ -10,10 +10,10 @@ | |
* @private | |
*/ | |
module.exports = (() => { | |
- const app = require('jsdoc/app'); | |
- const env = require('jsdoc/env'); |
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
Over time, I collected some options to make Firefox really fast. | |
WARNING! NO WARRANTY, use on your own risk! | |
If you know what you're doing, go to 'about:config' and edit the listed values accordingly. | |
Hint: Double-click boolean values to toggle true/false. | |
########################### | |
If mouse-wheel scrolling is slow, try |
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 | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all |
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
# /etc/security/limits.conf | |
* soft nofile 999999 | |
* hard nofile 999999 | |
root soft nofile 999999 | |
root hard nofile 999999 | |
=========================================================== | |
# /etc/sysctl.conf | |
# sysctl for maximum tuning |
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
local path = ngx.var.request:split(" ")[2] -- path | |
local t={} | |
local cjson = require "cjson" | |
local m = ngx.re.match(path,[=[^/sentence/(.+)]=]) | |
local words = m[1]:split("%%20") -- words in the sentence | |
for i,k in pairs(words) do | |
local res_word = ngx.location.capture("/real/".. k ) | |
local value=cjson.new().decode(res_word.body) | |
table.insert(t, value.sentiment) |
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
config = { | |
nick = "my-nick123", | |
autoReconnect=true, | |
host="irc.freenode.org", | |
port=6667, | |
ident="my-nick123", | |
realname="my-nick123", | |
channels={"#lua"}, | |
modules = {'roll'}, | |
} |