Skip to content

Instantly share code, notes, and snippets.

View kristijorgji's full-sized avatar

Kristi Jorgji kristijorgji

View GitHub Profile
import 'package:flutter/material.dart';
class PinchZoomWidget extends StatefulWidget {
final Widget child;
const PinchZoomWidget({Key? key, required this.child}) : super(key: key);
@override
_PinchZoomWidgetState createState() => _PinchZoomWidgetState();
}
@kristijorgji
kristijorgji / git-rewrite.sh
Created June 17, 2021 11:54
git-rewrite.sh
#!/bin/sh
#===============================================================================
# This script will rewrite the history of your git commits based on the if condition below at line 20
# In this personal usage example, I add email to all commits that are without email set, and set my correct name
#===============================================================================
export GIT_REWRITE_LOG_FILE=/git-rewrite.log
echo '' > $GIT_REWRITE_LOG_FILE;
@kristijorgji
kristijorgji / letencrypt-copy-live.sh
Last active June 17, 2021 11:55
letencrypt-copy-live.sh
#!/usr/bin/env bash
# @kristijorgji
# This script copies all the live certbot/letsencrypt certificates to the dest you specify as first argument
# Example:
# bash letsencrypt-copy-live /home/ubuntu/certificates
DEST=$1
cd /etc/letsencrypt/live;
@kristijorgji
kristijorgji / graphql-field-finder.js
Created June 24, 2019 09:38 — forked from stubailo/graphql-field-finder.js
Find all GraphQL queries in your codebase that use a certain field
// This is a script that looks for usage of a specific field in GraphQL
// queries in your codebase.
//
// First, add a .graphqlconfig in your directory pointing to your schema
// Then, run the script with:
//
// node graphql-field-finder.js Field.name
//
// It will output a list of files and queries that contain the field you're
// looking for: