Discover gists
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
stages: | |
- deploy | |
Deploy: | |
before_script: | |
## Install ssh-agent if not already installed, it is required by Docker. | |
## (change apt-get to yum if you use an RPM-based image) | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
## Create the SSH directory and give it the right permissions |
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
<?php | |
echo "PHP 버전: " . phpversion() . "\n"; | |
$gdInfo = gd_info(); | |
$imagick = new Imagick(); | |
$version = $imagick->getVersion(); | |
echo "ImageMagick 버전: " . $version['versionString'] . "\n"; | |
foreach ($gdInfo as $key => $value) { | |
echo "$key: $value\n"; | |
} |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
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
/* | |
* CSS Properties | |
* http://ref.openweb.io/CSS/ | |
**/ | |
.properties { | |
align-content: value; | |
align-items: value; | |
align-self: value; |
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
""" | |
Sign in to Xbox Live with OAUTH2 | |
1. Go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade | |
2. Register new app ("+ New registration") | |
2.1. Enter a name for your app | |
2.2. Set "Supported account types" to "Personal Microsoft accounts only" | |
2.3. Click register | |
2.4. Choose "Redirect URIs" -> "Add a Redirect URI" | |
2.5. Click "Add a platform" -> "Mobile and desktop applications" |
NewerOlder