Skip to content

Instantly share code, notes, and snippets.

@veeral-patel
veeral-patel / gcal_syncer.py
Created February 26, 2024 18:58
Google_Calendar_Syncer
from google.oauth2.service_account import Credentials
from googleapiclient.discovery import build
import datetime
# Setup the service account credentials
SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly',
'https://www.googleapis.com/auth/calendar']
SERVICE_ACCOUNT_FILE = 'path/to/your/service-account-file.json'
credentials = Credentials.from_service_account_file(
{
"data": {
"repository": {
"defaultBranchRef": {
"name": "master",
"target": {
"history": {
"edges": [
{
"node": {
query {
repository(owner: "facebook", name: "react") {
defaultBranchRef {
name
target {
... on Commit {
history(first: 2) {
edges {
node {
messageHeadline
query {
repository(owner: "facebook", repo: "react") {
defaultBranchRef {
name
... on Commit {
history {
dates {
commits {
messageHeadline
friendlyTime
{
"data": {
"repository": {
"owner": {
"login": "facebook"
},
"isPrivate": false,
"isDisabled": false,
"isArchived": false,
"isLocked": false,
{
"data": {
"repository": {
"owner": {
"login": "facebook"
},
"isPrivate": false,
"isDisabled": false,
"isArchived": false,
"isLocked": false,
query {
repository(owner: "facebook", name: "react") {
owner {
login
}
isPrivate
isDisabled
isArchived
isLocked
name
@veeral-patel
veeral-patel / homepage.graphql
Last active April 3, 2020 23:06
React.js Repo - Homepage
query {
repository(owner: "facebook", repo: "react") {
owner {
login
}
name
usedByCount
watchersCount
stargazersCount
forksCount
@veeral-patel
veeral-patel / linkedin_mass_unfollow.js
Created April 2, 2020 17:53
Mass unfollow people/companies on LinkedIn
// Use this script to unfollow lots of people/companies at once on LinkedIn, without clicking the
// "Unfollow" button for every person.
// 1. Visit https://www.linkedin.com/feed/following
// 2. Apply a filter if you'd like (like only list companies)
// 3. Copy/paste the script below in your browser's JavaScript console.
// WARNING: make sure you have the right filter set! if you run this on a page with people, it will unfollow all the
// people you're following, which you may not want!