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.
#! /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 |
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 |
cat SHA-2.crt Certum_Domain_Validation_CA_SHA2.crt Certum_Trusted_Network_CA.crt mine > bundle.crt
sudo update-ca-certificates
reboot
openssl s_client -connect domain:443 -CApath /etc/ssl/certs
cat SHA-2.crt Certum_Domain_Validation_CA_SHA2.crt Certum_Trusted_Network_CA.crt mine > bundle.crt
sudo update-ca-certificates
reboot
openssl s_client -connect domain:443 -CApath /etc/ssl/certs
public static void hideStatusbar(Activity context) { | |
if (Build.VERSION.SDK_INT < 16) { | |
context.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); | |
} else { | |
View decorView = context.getWindow().getDecorView(); | |
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN; | |
decorView.setSystemUiVisibility(uiOptions); | |
} | |
} |