In your command-line run the following commands:
brew doctor
brew update
server { | |
listen 80; | |
root /usr/share/nginx/html; | |
gzip on; | |
gzip_types text/css application/javascript application/json image/svg+xml; | |
gzip_comp_level 9; | |
etag on; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} |
In your command-line run the following commands:
brew doctor
brew update
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and
returning the cached result when the same
inputs occur again.
— wikipedia
This tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR
This tutorial assumes that the VPN server and VPN client are both running CentOS operating system.
Log into your CentOS server, then run the following commands to install WireGuard.
# CentOS 8
The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.
With ffmpeg
this can be achieved with -c copy
. Older examples may use -vcodec copy -acodec copy
which does the same thing.
These examples assume ffmpeg
is in your PATH
. If not just substitute with the full path to your ffmpeg binary.
Recommendations of unit types per media type:
Media | Recommended | Occasional use | Infrequent use | Not recommended |
---|---|---|---|---|
Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
Running a script in the background in linux can be done using nohup
, using nohup we can run node application in the background
$ nohup node server.js > /dev/null 2>&1 &
nohup
means: Do not terminate this process even when the stty is cut off> /dev/null
means: stdout goes to /dev/null
(which is a dummy device that does not record any output)If you ever need to modify the proguard rules for the Android-part of your Expo managed workflow, you can achieve this by using a config plugin.
./plugins
in the project root folder.withProguardRules.js
and my-proguard-rules.pro
in the folderplugins
array of your app.config.js
(or app.json
if you're using that instead).NOTE: if you rename your .pro
file, don't forget to change the two occurrences of my-proguard-rules
in withProguardRules.js
as well.
<?php | |
class Rg { | |
/* | |
Based on Rapidgator Api | |
https://support.rapidgator.net/index.php?/Knowledgebase/Article/View/89/9/do-you-have-api | |
*/ | |