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
Scripts that deletes chrome on mac and leftovers | |
# https://superuser.com/a/318205 | |
rm -r /Applications/Google\ Chrome.app/ | |
rm -r ~/Library/Application\ Support/Google/Chrome/ | |
rm ~/Library/Application\ Support/CrashReporter/Google\ Chrome* | |
rm ~/Library/Preferences/com.google.Chrome* | |
rm ~/Library/Preferences/Google\ Chrome* | |
rm -r ~/Library/Caches/com.google.Chrome* | |
rm -r ~/Library/Saved\ Application\ State/com.google.Chrome.savedState/ |
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
// When the tab bar is pressed and the screen is focused, check if the screen component has tabOnTabNavigator function and call it | |
// For the screen function see https://gist.github.com/dblazeski/e7677db0d209c03713b24fcf00443c0e | |
const getScreenRegisteredFunctions = navState => { | |
// When we use stack navigators. | |
// Also needed for react-navigation@2 | |
const { routes, index, params } = navState; | |
if (navState.hasOwnProperty('index')) { | |
return getScreenRegisteredFunctions(routes[index]); |
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
class HomeScreen extends React.Component { | |
componentDidMount() { | |
// Listen for screen focus event | |
this.props.navigation.addListener('didFocus', this.onScreenFocus) | |
} | |
// Called when our screen is focused | |
onScreenFocus = () => { | |
// Screen was focused, our on focus logic goes 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
In the terminal run and follow the onscreen prompts: | |
$ sudo dpkg-reconfigure tzdata |
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
In terminal, run and follow the onscreen wizzard: | |
sudo dpkg-reconfigure tzdata |
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
# Forces HTTPS redirect on all requests | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 301 https://$host$request_uri; | |
} | |
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
/* Force Firefox to show image placeholders | |
----------------------------------------------------------*/ | |
@-moz-document url-prefix(http), url-prefix(file) { | |
img:-moz-broken { | |
-moz-force-broken-image-icon: 1; | |
width: 100px; | |
height: 75px; | |
} | |
} |