Skip to content

Instantly share code, notes, and snippets.

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 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
View dropdown.md
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 Mar 29, 2021
MacOS -> {username} -> Library -> LaunchAgents
View local.nas.backup-documents.plist
<!--
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 Nov 15, 2020
Netlify Site Configuration (Nuxt.js and others)
@bgrand-ch
bgrand-ch / Knex-Migrations-Seeding.md
Created Oct 20, 2020 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!
View Knex-Migrations-Seeding.md

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 Jun 17, 2020
Svelte 3, Babel 7, Polyfill IE 11
View babel.config.js
// 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 Apr 22, 2020 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation
View Synology-Diskstation-Git.md

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 Oct 29, 2019 — forked from aquelito/git-command.md
GIT - Ligne de commande principale
View git-command.md
title category
Git config
Git

Rappel

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