Skip to content

Instantly share code, notes, and snippets.

View bgrand-ch's full-sized avatar
🙂
An idea, create it.

Benjamin Grand bgrand-ch

🙂
An idea, create it.
View GitHub Profile
@bgrand-ch
bgrand-ch / dropdown.md
Created May 19, 2021 12:35 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@bgrand-ch
bgrand-ch / local.nas.backup-documents.plist
Last active March 29, 2021 12:44
MacOS -> {username} -> Library -> LaunchAgents
<!--
Backup files in the `Documents` folder to the NAS.
@see https://www.launchd.info/
@see https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html
@see https://linux.developpez.com/unison/
@see http://xahlee.info/UnixResource_dir/unison_file_sync.html
@see https://superuser.com/questions/1272832/how-do-i-ignore-folders-and-its-subdirectories-in-unison-sync
@see https://superuser.com/questions/1166185/making-unison-ignore-file-property-differences
-->
<?xml version="1.0" encoding="UTF-8"?>
@bgrand-ch
bgrand-ch / netlify-site-configuration.md
Last active November 15, 2020 02:17
Netlify Site Configuration (Nuxt.js and others)
@bgrand-ch
bgrand-ch / Knex-Migrations-Seeding.md
Created October 20, 2020 09:20 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

@bgrand-ch
bgrand-ch / babel.config.js
Created June 17, 2020 12:06
Svelte 3, Babel 7, Polyfill IE 11
// https://www.learningsomethingnew.com/how-to-make-your-svelte-3-cordova-app-work-on-old-phones-using-babel-7-and-rollup
// https://blog.az.sg/posts/svelte-and-ie11/
module.exports = function (api) {
api.cache(true);
const presets = [
[
'@babel/preset-env', {
useBuiltIns: 'usage',
corejs: 3,
@bgrand-ch
bgrand-ch / Synology-Diskstation-Git.md
Created April 22, 2020 14:15 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation
@bgrand-ch
bgrand-ch / git-command.md
Created October 29, 2019 10:52 — forked from aquelito/git-command.md
GIT - Ligne de commande principale
title category
Git config
Git

Rappel

Ne pas oublier : l'aide en ligne de commande.