Skip to content

Instantly share code, notes, and snippets.

View lowsky's full-sized avatar
:electron:
#graphql #reactjs #webdevop

lowsky lowsky

:electron:
#graphql #reactjs #webdevop
View GitHub Profile
@lowsky
lowsky / gist:af1d0454f452b2c6a2dbc4da5beb383e
Created June 25, 2024 18:19
yarn info with trace deprecation
NODE_OPTIONS='--trace-deprecation' yarn info

This script list the age of each dependencies

It extracts the "dependencies" from package.json to pipe it into qnm:

It is done via jq ".dependencies" piped into jq "keys" to retrieves the dependency names.

Finally, the xargs utility is used to execute the qnm tool command for each dependency. (The sed utility is used to remove any commas, and the array- brackets)

@lowsky
lowsky / exercise-2.md
Last active December 13, 2016 18:18
steps for checking out docker
@lowsky
lowsky / graphqlHub-createSchemaFile.js
Created June 21, 2016 18:16
Create a new GraphQL schema.json file for GraphQLHub
#!/usr/bin/env node_modules/.bin/babel-node
// when converting to a shell script, uncomment the line above
// This creates a new schema.json file which is needed, for using with a
// relay client
// use it together within
//
// https://github.com/clayallsopp/graphqlhub
#!/bin/bash -e
# This displays the log of the docker daemon in the boot2docker VM.
boot2docker ssh tail -f /var/log/docker.log
@lowsky
lowsky / GitRepoUpdateTimestamp.sh
Last active August 29, 2015 14:20 — forked from jdoconnor/gist:32ef0314cecb80157c4e
Helper script to update the Last modified timestamp of files in a Git SCM Projects working Copy.
#!/bin/bash -e
####
# based on https://gist.github.com/jdoconnor/32ef0314cecb80157c4e which itself was
# based on https://gist.github.com/jeffery/1115504
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
#!/bin/bash -x
REPO="${1}"
SHA1="${2}"
repofragment=$(cd "$REPO"; git remote -v | grep origin | grep push | sed -e 's/.*github\.com.\(.*\)\.git.*/\1/')
url="https://github.com/${repofragment}/commit/${SHA1}"
open "$url"