redis-cli -n 4 KEYS "mapper-*" | xargs redis-cli -n 4 DEL
# BACKUP
github-backup -t ghp_XXX -O ampeersenergy --repositories --wikis --private -o .
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true, | |
"jest": true | |
}, | |
"parserOptions": { | |
"ecmaVersion": 9 |
// DB_NAME via: ChromeDev Tools -> Application Tab -> Indexed DB | |
// should be something like: _pouch_bank_MD5_HASH | |
const DB_NAME = "YOUR_DB_NAME"; | |
indexedDB.open(DB_NAME, DB_VERSION = 5).onsuccess = function (evt) { | |
const db = this.result; | |
const transaction = db.transaction("by-sequence", 'readonly'); | |
const objectStore = transaction.objectStore("by-sequence"); | |
const index = objectStore.index("_doc_id_rev"); |
nvm
via Homebrewbtn.addEventListener("send-btn",onSend); | |
send = CAF(send); | |
var prevSend = Promise.resolve(); | |
function onSend(evt) { | |
prevSend.finally(function f(){ | |
prevSend = send( | |
CAF.timeout(1000,"send took too long."), | |
{ some: "data" } | |
) |
const fetch = require('node-fetch'), | |
FormData = require('form-data'); | |
// your gitea domain without trailing slash | |
const GITEA_DOMAIN = 'https://subdomain.domain.xyz'; | |
// you can find this variables when you visit your gitea installation | |
// open dev-tools and look in the Cookies section | |
const i_like_gitea = 'YOUR_I_LIKE_GITEA_STRING'; | |
const gitea_awesome = 'YOUR_GITEA_AWESOME_STRING'; |
import base64 | |
from odoo import models, fields, api | |
class SomeModel(models.Model): | |
_name = 'some.model' | |
field1 = fields.Char(string="Field 1") | |
field2 = fields.Boolean(string="Field 2") | |
@api.multi |
// this code will turn an OUT cursor from the node-oracledb library | |
// and turn the data into an array objects that has the structure of | |
// [{NAME: value, NAME_2: value, NAME_N: value}, ...] | |
// where the NAME is the column name returned through the cursor | |
// | |
// Distributed freely under MIT License <http://mutedsolutions.mit-license.org> | |
// Copyright 2016 Muted Solutions, LLC. All Rights Reserved. | |
const EventEmitter = require("events"); | |
const util = require("util"); |
export GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 GIT_SSH_COMMAND="ssh -vvv" && git clone <URL> |