This file contains 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 '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(); | |
} |
This file contains 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
#!/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; |
This file contains 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
#!/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; |
This file contains 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
// 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: |