There are several ways
- Create
file.txt - Rename to
.file., the last dot will be dropped, you'll have.file
Works the same with a file or a directory.
| server { | |
| listen 80; | |
| root /vagrant; | |
| index index.html index.htm index.php app.php app_dev.php; | |
| # Make site accessible from http://set-ip-address.xip.io | |
| server_name 192.168.33.10.xip.io; | |
| access_log /var/log/nginx/vagrant.com-access.log; | |
| error_log /var/log/nginx/vagrant.com-error.log error; |
| #! /usr/bin/env python | |
| import time | |
| import threading | |
| import logging | |
| try: | |
| import tkinter as tk # Python 3.x | |
| import tkinter.scrolledtext as ScrolledText | |
| except ImportError: | |
| import Tkinter as tk # Python 2.x | |
| import ScrolledText |
| final ImageView backgroundOne = (ImageView) findViewById(R.id.background_one); | |
| final ImageView backgroundTwo = (ImageView) findViewById(R.id.background_two); | |
| final ValueAnimator animator = ValueAnimator.ofFloat(0.0f, 1.0f); | |
| animator.setRepeatCount(ValueAnimator.INFINITE); | |
| animator.setInterpolator(new LinearInterpolator()); | |
| animator.setDuration(10000L); | |
| animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { | |
| @Override | |
| public void onAnimationUpdate(ValueAnimator animation) { |
| APP_ENV=testing | |
| APP_KEY=SomeRandomString | |
| DB_CONNECTION=testing | |
| DB_TEST_USERNAME=root | |
| DB_TEST_PASSWORD= | |
| CACHE_DRIVER=array | |
| SESSION_DRIVER=array | |
| QUEUE_DRIVER=sync |
git initgit add . to add all of the relevant files.git commitgit remote add origin https://github.com/<username>/<repo-name>git config --global push.default simplegit branch --set-upstream-to=origin/mastergit pushyum install python36u python36u-devel python36u-mod_wsgialias python='/usr/bin/python3.6'curl -O https://bootstrap.pypa.io/get-pip.pypython get-pip.pypython -m pip install django mysqlclientcp /etc/httpd/modules/mod_wsgi_python3.6.so /usr/local/apache/modulesALTER TABLE table CONVERT TO CHARACTER SET utf8;curl -X POST --header "Authorization: key=" --Header "Content-Type: application/json" https://fcm.googleapis.com/fcm/send -d "{\"to\":\"\",\"notification\":{\"body\":\"Yellow\"},\"priority\":10}"
| import toolz | |
| class Token(object): | |
| def __init__(self, id, token): | |
| self.id = id | |
| self.token = token | |
| def get_id(self): | |
| return self.id |
| server { | |
| listen 80; | |
| server_name mysite.com; | |
| rewrite ^ https://$server_name$request_uri? permanent; | |
| } | |
| server { | |
| listen 443; | |
| ... | |
| ... |