This proposal is not longer active. Context: https://twitter.com/siddharthkp/status/909818777314902016
| #!/bin/sh | |
| # Setting this, so the repo does not need to be given on the commandline: | |
| # export BORG_REPO=ssh://[email protected]:2022/~/backup/main | |
| export BORG_REPO=/run/media/james/64gb/backup | |
| # Setting this, so you won't be asked for your repository passphrase: | |
| # export BORG_PASSPHRASE='XYZl0ngandsecurepa_55_phrasea&&123' | |
| # or this to ask an external program to supply the passphrase: | |
| export BORG_PASSCOMMAND='pass show backup' |
This proposal is not longer active. Context: https://twitter.com/siddharthkp/status/909818777314902016
| require('dotenv').config(); | |
| const { GraphQLClient } = require('graphql-request'); | |
| const client = new GraphQLClient(process.env.ENDPOINT, { headers: { | |
| 'Authorization': `Bearer ${process.env.ACCESS_TOKEN}` | |
| }}); | |
| const query = T => ` | |
| query Get${T}s { | |
| all${T}s { | |
| id |
Public Function RecordSetFromSheet(sheetName As String)
Dim rst As New ADODB.Recordset
Dim cnx As New ADODB.Connection
Dim cmd As New ADODB.Command
'setup the connection
'[HDR=Yes] means the Field names are in the first row
With cnx| function slugify(text) { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |
| pink = #ff0198 // hollywood cerise | |
| yellow = #ffb617 // my sin | |
| purple = #6e27c5 // purple heart | |
| orange = #ff6600 // blaze orange | |
| blue = #01c1d6 // robin's egg blue | |
| java = #1cbcd2 // java | |
| sun = #fab319 // sun | |
| affair = #69479e // affair | |
| flamingo = #f16623 // flamingo | |
| minsk = #2e2e86 // minsk |
| #!/bin/bash | |
| # this command finds all the `node_modules` folders under your current path and will prune them | |
| find . | grep /node_modules$ | grep -v /node_modules/ | xargs rm -fR |