- Enter
chrome://flags/#same-site-by-default-cookies
in the address bar - Disable selected option
- Restart browser
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
html, body { | |
background: #111 !important; | |
} | |
#hnmain { | |
background: #1a1a1a; | |
padding: 5px; | |
} | |
.subtext { |
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
Соединения | |
Список соединений | |
клик на соединение -> Страница Соединения | |
клик на новое соединение -> Создание соединения | |
Страница Соединения | |
Назад -> Соединения | |
Создание соединения |
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
const vm = require('vm'); | |
const instance = {}; | |
for (let i = 0; i < 10; i++) { | |
const execStart = process.hrtime(); | |
vm.runInNewContext('', instance); | |
const execEnd = process.hrtime(execStart); | |
console.log(`${execEnd[0]}s ${execEnd[1] / 1000000}ms`); | |
} |
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
function centerAuth(loginRequest) { | |
var response = HTTP.call('POST', 'http://localhost:4567/auth', | |
{params: {username: loginRequest.username, password: loginRequest.password}}); | |
response = JSON.parse(response.content); | |
if (response && response.response === 'ok') { | |
var userId = null; | |
var user = Meteor.users.findOne({ username: loginRequest.username }); | |
if (! user) { |
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 add = (function () { | |
var counter = 0; | |
var f = function (x) { | |
counter += x; | |
return f; | |
}; | |
f.valueOf = function () { |
Put this in /usr/share/themes/Radiance/gtk-3.0/apps/unity.css
.unity-panel.menubar,
.unity-panel .menubar {
text-shadow: none;
}
Run update-rc.d rssh defaults
after adding this file to /etc/init.d
on your Raspberry.
To SSH through NAT you should use "proxy" server (TARGET
in this script) with GatewayPorts yes
in its /etc/ssh/sshd_config
.
After configuring middle server just run ssh pi@example.com -p 2242
to connect to your Raspberry behind the NAT.
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 xmlrpc.client import ServerProxy | |
import json | |
pages = [] | |
wikidot = ServerProxy('https://username:api_key@scpfoundation.ru/xml-rpc-api.php') | |
pages_names = wikidot.pages.select({"site": "scp-ru"}) | |
for page_name in pages_names: | |
p = wikidot.pages.get_one( { "site": "scp-ru", "page": page_name } ) | |
del(p['html']) |
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
[ | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "hardbol", "extend": false} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "hardeol", "extend": false} }, | |
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false}}, | |
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false}}, | |
{ "keys": ["ctrl+x","a"], "command": "select_all"}, | |
{ "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} }, | |
{ "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} }, | |
{ "keys": ["ctrl+x", "f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} }, |
NewerOlder