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
# ========================================================= | |
# Increase version in both package.json and some other file | |
# ========================================================= | |
# I needed to update the version in package.json and in a typescript class. | |
# Version in class is used to check if caches need dropping | |
# Didn't want to include package.json in the typescript class as this would have added the whole package.json to the dist bundle | |
# So I created this script to update both. | |
# Will exit if no version provided, but no check is made if the format of the version is correct. |
How to use:
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<!DOCTYPE gamebook SYSTEM "gamebook.dtd" [ | |
<!ENTITY % general.links SYSTEM "genlink.mod"> | |
%general.links; | |
<!ENTITY % xhtml.links SYSTEM "htmllink.mod"> | |
%xhtml.links; | |
<!ENTITY % general.inclusions SYSTEM "geninc.mod"> | |
%general.inclusions; |
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
export interface InterfaceA { | |
value: string | |
} | |
export interface InterfaceB extends Omit<InterfaceA, 'value'> { | |
value: boolean | |
} |
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
Delete Last Commit | |
================== | |
# Remove last commit locally | |
git reset HEAD^ | |
# Push changes to remote which will remove the commit | |
git push origin +HEAD | |
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 'dart:developer'; | |
// ... | |
log(stringData); | |
// ... |
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
// Imports go here... no need to import react-router-dom | |
jest.mock('react-router-dom', () => ({ | |
useHistory: () => ({ push: jest.fn() }), | |
})) | |
// describe(), test() etc go here... |
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
Add Padding To Terminal | |
======================= | |
> gedit .config/gtk-3.0/gtk.css | |
Add the following to gtk.css and restart Terminal: | |
VteTerminal, | |
TerminalScreen, | |
vte-terminal { |
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
Rebuild Font Cache | |
================== | |
> sudo fc-cache -f -v |
NewerOlder