This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // DISCLAIMER: This script automates actions on Facebook which may violate their Terms of Service. | |
| // Use at your own risk. Aggressive use may result in temporary or permanent account restrictions. | |
| // This is provided for educational purposes only. | |
| // Facebook makes it very difficult to bulk remove friends. This should help. | |
| // | |
| // The goal here was not to completely automate this process, but to automate | |
| // like 85% of it so it would take minutes and not hours with a little bit of hand-holding. | |
| // | |
| // To get this to work: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n2h --status-property="Writing Progress" --status="Ready to Publish" --title="20 Things I Love" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // copy & fill out secrets.yml | |
| cp secrets-example.yml secrets.yml | |
| vim secrets.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n2h --status-property="Writing Progress" --status="Ready to Publish" --title="20 Things I Love" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // copy & fill out secrets.yml | |
| cp secrets-example.yml secrets.yml | |
| vim secrets.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n2h --status-property="Writing Progress" --status="Ready to Publish" --title="20 Things I Love" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // copy & fill out secrets.yml | |
| cp secrets-example.yml secrets.yml | |
| vim secrets.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function getHeaders() { | |
| const headers = {} | |
| const jwt = // whatever logic you need to fetch your JWT, possible from pinia etc | |
| if (jwt) { | |
| headers['Authorization'] = `Bearer ${jwt}` | |
| } | |
| headers['Content-Type'] = 'application/json' | |
| return headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { provide, createApp, h } from 'vue' | |
| import { ApolloClients } from '@vue/apollo-composable' | |
| import { UseApolloClients } from './src/util/useApolloClients.js' | |
| import App from './App.vue' | |
| // keep your URLs as env variables for easy dev/prod switching | |
| const { | |
| VITE_GQL_URL_1: URL1, | |
| VITE_GQL_URL_2: URL2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script setup> | |
| import { ref } from 'vue' | |
| import gql from 'graphql-tag' | |
| const MY_MUTATION = gql` | |
| mutation MyAwesomeMutation { | |
| // something awesome | |
| } | |
| ` |