This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| netstat -anp | |
| netstat -tupn | grep -v '127.0.0.1' | wc -l |
| sudo visudo | |
| $USER ALL=(ALL) NOPASSWD: ALL |
| du -s --inodes * | sort -n | |
| find * -type f -mtime +0 | wc -l |
| showProgressDialog(BuildContext context) { | |
| showDialog( | |
| context: context, | |
| barrierDismissible: false, | |
| builder: (BuildContext context) { | |
| return WillPopScope( | |
| onWillPop: () async => false, | |
| child: AlertDialog( | |
| elevation: 0, |
| fun <T> Any.convert(classOfT: Class<T>): T = Gson().fromJson(Gson().toJson(this), classOfT) | |
| package org.tillion.aslam.test; | |
| class Operations { | |
| public static void main(String[] args) { | |
| int[] intArr = {5, 4, 3, 8, 9, 11, 3, 3, 2, 9, 8, 7, 1, 22, 15, 67, 4, 17, 54, 67}; | |
| for (int j = 0; j < intArr.length - 1; j++) { |
JavaScript, Dart Pattern
^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$
Java, Kotlin Pattern
| server { | |
| listen 80; | |
| listen [::]:80; | |
| listen 443 ssl; | |
| server_name cdn.lk; | |
| ssl_certificate /home/aslam/server/ssl/cdn.lk.crt; | |
| ssl_certificate_key /home/aslam/server/ssl/cdn.lk.key; | |
| location / { |
| import android.content.Context | |
| import android.content.res.TypedArray | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import android.widget.LinearLayout | |
| import android.widget.TextView | |
| class DetailsView @JvmOverloads constructor( | |
| context: Context, | |
| attrs: AttributeSet? = null, |