Skip to content

Instantly share code, notes, and snippets.

import React from 'react';
import logo from './logo.svg';
import './App.css';
import useSWR from 'swr'
import { useState, useEffect } from 'react';
import JSONPretty from 'react-json-pretty';
import 'react-json-pretty/themes/monikai.css';
async function fetcher(url: string) {
const resp = await fetch(url);
@tomekjarosik
tomekjarosik / teleport-node-config.md
Created June 1, 2020 21:38
teleport-node-config.md
teleport:
  nodename: dev-tjarosik-shared
  data_dir: /var/lib/teleport
  pid_file: /var/run/teleport.pid
  auth_token: **************************************
  connection_limits:
    max_connections: 1000
    max_users: 250
 log:
@tomekjarosik
tomekjarosik / teleport-proxy-config.md
Created June 1, 2020 21:18
teleport-proxy-config.md
teleport:
  nodename: olobok-proxy
  data_dir: /var/lib/teleport
  pid_file: /var/run/teleport.pid
  auth_servers:
  - 0.0.0.0:3025
  connection_limits:
    max_connections: 1000
    max_users: 250
@tomekjarosik
tomekjarosik / folding-at-home-there-is-no-domain-decomposition-for-20-ranks.md
Created April 14, 2020 21:37
There is no domain decomposition for 20 ranks...ERROR
 04:04:41:WU00:FS00:0xa7:Calling: mdrun -s frame18.tpr -o frame18.trr -x frame18.xtc -cpt 15 -nt 28
04:04:41:WU00:FS00:0xa7:Steps: first=9000000 total=500000
04:04:41:WU00:FS00:0xa7:ERROR:
04:04:41:WU00:FS00:0xa7:ERROR:-------------------------------------------------------
04:04:41:WU00:FS00:0xa7:ERROR:Program GROMACS, VERSION 5.0.4-20191026-456f0d636-unknown
04:04:41:WU00:FS00:0xa7:ERROR:Source code file: /host/debian-stable-64bit-core-a7-avx-release/gromacs-core/build/gromacs/src/gromacs/mdlib/domdec.c, line: 6902
04:04:41:WU00:FS00:0xa7:ERROR:
04:04:41:WU00:FS00:0xa7:ERROR:Fatal error:
04:04:41:WU00:FS00:0xa7:ERROR:There is no domain decomposition for 20 ranks that is compatible with the given box and a minimum cell size of 1.37225 nm
@tomekjarosik
tomekjarosik / powerdns-filtering.lua
Last active November 17, 2019 16:04
powerdns-filtering.lua
-- Define new Domain Set
blocked_domains=newDS()
-- Load Domain Set from the file. Format of the file is: 'return {"a.com", "b.com", "a.fb.com"}'
blocked_domains:add(dofile("/etc/powerdns/full_list_13-11-2019.lua"))
-- define a preresolve() function which gets called by PowerDNS to determine what to do with a domain
function preresolve(dq)
-- If we see that a query name is not part of one of the blocked domains,
-- or the query is not for an IP(v6) address, we return false and the normal resolution process continues.
if(not blocked_domains:check(dq.qname) or (dq.qtype ~= pdns.A and dq.qtype ~= pdns.AAAA)) then