Skip to content

Instantly share code, notes, and snippets.

View DAB0mB's full-sized avatar
♥️
Single af

Eytan Manor DAB0mB

♥️
Single af
View GitHub Profile
@DAB0mB
DAB0mB / pstree1.log
Last active September 27, 2022 19:44
systemd(1)-+-ModemManager(986)-+-{ModemManager}(1046)
| `-{ModemManager}(1049)
|-NetworkManager(867)-+-{NetworkManager}(935)
| `-{NetworkManager}(951)
|-accounts-daemon(855)-+-{accounts-daemon}(861)
| `-{accounts-daemon}(949)
|-acpid(856)
|-avahi-daemon(858)---avahi-daemon(914)
|-bluetoothd(859)
|-colord(954)-+-{colord}(988)
I0919 19:56:00.406446 210732 loader.go:372] Config loaded from file: /home/user/.kube/config
I0919 19:56:00.426429 210732 round_trippers.go:463] GET https://k8s.ord1.coreweave.com/api/v1/namespaces/tenant-user/pods?limit=500
NAME READY STATUS RESTARTS AGE
pod3 1/1 Running 0 1h11m
pod2 1/1 Running 0 3h33m
pod1 1/1 Running 0 132d
@DAB0mB
DAB0mB / hot&cold_policy.md
Created May 8, 2020 15:28
Hot&Cold Privacy Policy

Privacy Policy

Introduction

Hot & Cold App, Inc. (“Company” or “We” or “Us”) respect your privacy and are committed to protecting it through our compliance with this policy. This policy describes:

  • The types of information we may collect or that you may provide when you download, install, register with, access, or use the Hot & Cold mobile application (the “App”).
  • Our practices for collecting, using, maintaining, protecting, and disclosing that information.
  • This policy applies only to information we collect in this App, in email, text, and other electronic communications sent through or in connection with this App.
function observerCallback (mutations, observer) {
// Will cause more mutations
updateStyle(mutations)
// Will dispose pending mutations
observer.takeRecords()
}
import { DocumentNode, GraphQLError } from 'graphql'
import { OperationVariables, FetchPolicy } from 'apollo-client'
import { useEffect, useMemo, useRef, useState } from 'react'
import { useApolloClient } from 'react-apollo-hooks'
import * as isEqual from 'react-fast-compare'
export type SubscriptionOptions<TVariables> = {
variables?: TVariables;
fetchPolicy?: FetchPolicy;
}
const { execFile } = require('child_process')
execFile('git', ['log'], (err, out) => {
if (err) {
console.error(err)
}
else {
console.log(out)
}
})
const { spawn } = require('child_process')
spawn('git', ['log'], {
stdio: 'inherit' // Will use process .stdout, .stdin, .stderr
})
const { spawn } = require('child_process')
spawn('git', ['log']).stdout.pipe(process.stdout)
const { spawn } = require('child_process')
spawn('git', ['log'])
@DAB0mB
DAB0mB / git-remove.js
Last active September 3, 2018 10:06
usage: $ ./git-remove.js <anchor> <amount>
#!/usr/bin/env node
const execa = require('execa')
const fs = require('fs')
const tmp = require('tmp')
// Main
{
const [anchor, amount = 1] = process.argv.slice(-2).map(Number)
gitRebaseInteractive(anchor, function (operations, amount) {