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
# CodeSearchNet | |
/python*.jsonl | |
/python*.jsonl.gz | |
/python.zip | |
/code.txt | |
/repos.txt |
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
/target | |
/db | |
/Cargo.lock |
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
#include <iostream> // cout, cerr, endl | |
#include <memory> // shared_ptr | |
#include <sys/time.h> // setpriority | |
#include <sys/resource.h> // setpriority | |
/** | |
* Set low nice priority in the current Linux thread.\n | |
* Usage: \code auto&& restorePriority = ioNice(); \endcode. | |
*/ | |
static shared_ptr<void> ioNice (int priority = 19) { |
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
# Turn compression off in order for the Substitute to work. | |
RequestHeader unset Accept-Encoding "expr=%{REQUEST_URI} =~ m#^/news#" | |
# http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#examples | |
ProxyPass /news http://newspaper.ipage.am | |
ProxyPassReverse /news http://newspaper.ipage.am | |
Substitute "s|http://newspaper.ipage.am|http://mercatos.net/news|n" | |
# In order for the substitute module to work we have to add it to the filter chain. | |
FilterDeclare Substitute | |
FilterProvider Substitute SUBSTITUTE "%{REQUEST_URI} =~ m#^/news#" | |
FilterChain +Substitute |
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
//@ts-check | |
// TODO: A function to run the `certbot`; arguments: domain, email | |
const fs = require ('fs'); | |
const http = require ('http'); | |
const os = require ('os'); | |
/** | |
* Example invoking certbot for this function, on Debian 10 Buster: |
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
pub struct PcreJit { | |
pub re: Mutex<pcre::Pcre>, | |
/// Map from a capturing group name to its number. | |
/// `None` if no named capturing groups found or if the `auto_capture` option is given to `PcreJit::new`. | |
pub names: Option<BTreeMap<String, Vec<usize>>>} | |
unsafe impl Sync for PcreJit {} | |
unsafe impl Send for PcreJit {} | |
impl PcreJit { | |
/// JIT-compiles the regular expression. | |
/// |
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
/node_modules | |
/package-lock.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
// [build] cd .. && cargo bench | |
#![feature(asm, test)] | |
extern crate inlinable_string; | |
extern crate ordermap; | |
extern crate seahash; | |
extern crate test; | |
use inlinable_string::{InlinableString, StringExt}; |
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
/* | |
Copyright (c) 2008 ArtemGr | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted, provided that the above | |
copyright notice and this permission notice appear in all copies. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
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
administrator@macinvalut:~$ docker stop komodo-dex | |
komodo-dex | |
administrator@macinvalut:~$ docker run -d --rm -p 14868:14868 -p 14869:14869 --name komodo-dex komodo-dex | |
479ca54e6d7c2a6d53cab4823b47c44ba5bd1cb712cfd4bed8b5cb79cccf96e6 | |
administrator@macinvalut:~$ docker logs komodo-dex | |
ASSETCHAINS_SUPPLY 999999 | |
MAX_MONEY 100006220417438 1000062.20417438 | |
>>>>>>>>>> DEXP2P: p2p.14868 rpc.14869 magic.6378a12f 1668849967 999999 coins | |
call komodo_args.(komodod) NOTARY_PUBKEY.() | |
nMaxConnections 384 |