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
# Simple systemd service for Nebula Graph | |
# Enterprise Edition comes with this feature built-in | |
# | |
# Tested on Ubuntu LTS 20.04 | |
# | |
# Increase max file descriptors for systemd child processes: | |
# 1. echo "DefaultLimitNOFILE=130000:524288" >> /etc/systemd/system.conf | |
# 2. Verify a process' limits: sudo prlimit -n <PID> | |
# | |
# Usage: |
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 base45 | |
import cbor2 | |
import zlib | |
from binascii import unhexlify | |
from cose.messages import Sign1Message | |
from cose.keys import CoseKey | |
# Specifications: https://ec.europa.eu/health/sites/default/files/ehealth/docs/covid-certificate_json_specification_en.pdf |
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 main | |
import ( | |
"fmt" | |
"github.com/RoaringBitmap/roaring" | |
"github.com/dgraph-io/sroar" | |
) | |
func main() { |
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
NAME=load-test | |
CMD="\ | |
while true; | |
do | |
curl \ | |
--silent \ | |
${URL} > /dev/null; | |
echo downloaded; | |
done" |
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
// Suggested rule: warn on casts from interfaces to concrete types | |
using System; | |
namespace VS2013ConsoleApplication1.RoslynRule_samples | |
{ | |
public interface IMyInterface | |
{ | |
void DoStuff(); | |
} |
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
// Suggested rule: warn on the use of "new" to hide methods | |
using System; | |
namespace VS2013ConsoleApplication1.RoslynRule_samples | |
{ | |
public class MyBaseType | |
{ | |
public int GetData() |