Skip to content

Instantly share code, notes, and snippets.

Avatar
📦
Fetching packages

James Bissick JamesBissick

📦
Fetching packages
  • Teksial
  • Paris, France
View GitHub Profile
@april
april / arena-macos-fixes.sh
Last active Jun 26, 2022
Fixes Magic Arena's broken full screen implementation on macOS
View arena-macos-fixes.sh
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0
# you can also replace the long complicated integer bit with any other scaled 16:9
# resolution your system supports.
# to find the scaled resolutions, go to System Preferences --> Display and then
# divide the width by 16 and multiple by 9. on my personal system this ends up
@PurpleBooth
PurpleBooth / README-Template.md
Last active Jun 26, 2022
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@aquelito
aquelito / git-command.md
Last active Jun 23, 2022
GIT - Ligne de commande principale
View git-command.md
title category
Git config
Git

Rappel

Ne pas oublier : l'aide en ligne de commande.

View env-examples.md

Most configuration really isn't about the app -- it's about where the app runs, what keys it needs to communicate with third party API's, the db password and username, etc... They're just deployment details -- and there are lots of tools to help manage environment variables -- not the least handy being a simple .env file with all your settings. Simply source the appropriate env before you launch the app in the given env (you could make it part of a launch script, for instance).

env files look like this:

SOMEVAR="somevalue"
ANOTHERVAR="anothervalue"

To source it:

$ source dev.env # or staging.env, or production.env, depending on where you're deploying to

@tony4d
tony4d / p4merge4git.md
Created Aug 24, 2012
Setup p4merge as a visual diff and merge tool for git
View p4merge4git.md