Skip to content

Instantly share code, notes, and snippets.

Working on Coil

Dacio dacioromero

Working on Coil
View GitHub Profile
dacioromero / crontab
Last active May 22, 2020
Update qBittorrent trackers from daily
View crontab
@daily /usr/local/bin/python3 /root/
View docker-compose.yml
version: "3"
image: "dperson/openvpn-client"
network_mode: "bridge"
- "/dev/net/tun"
View remove-transitive.js
const fs = require('fs')
const lockfile = require('@yarnpkg/lockfile')
const package = require('./package.json')
const lock = lockfile.parse(fs.readFileSync('yarn.lock', 'utf-8')).object
const allDeps = new Set()
const parseDep = ([name, version]) => {
View eslint.json5
// Possible Errors
"for-direction": "off",
"getter-return": "off",
"no-async-promise-executor": "off",
"no-await-in-loop": "off",
"no-compare-neg-zero": "off",
"no-cond-assign": "off",
"no-console": "off",
"no-constant-condition": "off",
dacioromero / in-memory-storage.ts
Last active Jan 29, 2020
TypeScript Storage Implementation
View in-memory-storage.ts
class InMemoryStorage implements Storage {
private data = new Map<string, string>()
clear (): void {
getItem (key: string): string | null {
return ?? null
View Wills Places
View PickOmitByValue.ts
type KeysMatchingValue<T, V> = { [P in keyof T]: T[P] extends V ? P : never }[keyof T]
type PickByValue<T, V> = Pick<T, KeysMatchingValue<T, V>>
type OmitByValue<T, V> = Omit<T, KeysMatchingValue<T, V>>
View reddit_post_dry.json
"$schema": "",
"title": "Post",
"description": "A Reddit post and its comments",
"type": "object",
"definitions": {
"votes": {
"type": "object",
"properties": {
"up": {
View reddit_post_comments.json
"$schema": "",
"title": "Post",
"description": "A Reddit post and its comments",
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 8,
"maxLength": 32
You can’t perform that action at this time.