This file contains hidden or 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
# From Docker container | |
ssh -nNT -L /var/run/mysqld/mysqld.sock:remotehost:3306 -i <cert.pem> ubuntu@ssh_host | |
# From Docker container, php config | |
$db = new PDO( sprintf("mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=%s", $config['db']['database']), $config['db']['username'], $config['db']['password']); |
This file contains hidden or 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
- [email protected]: | |
inputs: | |
- project_location: "$PROJECT_LOCATION" | |
- module: "$MODULE" | |
- variant: "$VARIANT" |
This file contains hidden or 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
module.exports = ({ env }) => ({ | |
host: env('HOST', '0.0.0.0'), | |
port: env.int('PORT', 1337), | |
baseUrl: 'https://example.com', | |
url: 'https://example.com/strapi', | |
admin: { | |
url: 'https://example.com/strapi/admin' | |
} | |
}); |
This file contains hidden or 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
package com.tie; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
public class SplashActivity extends AppCompatActivity { | |
@Override |
This file contains hidden or 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
./node_modules/.bin/react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios' |
This file contains hidden or 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
Download the desired file | |
Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight) | |
Convert the .iso file to .img using the convert option of hdiutil: | |
hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso | |
Note: OS X tends to put the .dmg ending on the output file automatically. Rename the file by typing: | |
mv /path/to/target.img.dmg /path/to/target.img | |
Run diskutil list to get the current list of devices | |
Insert your flash media | |
Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2) | |
Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command - in the previous example, N would be 2) |
This file contains hidden or 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
zend_extension=xdebug.so | |
xdebug.remote_autostart = 1 | |
xdebug.remote_enable = 1 | |
xdebug.remote_handler = dbgp | |
xdebug.remote_host = 127.0.0.1 | |
xdebug.remote_log = /tmp/xdebug_remote.log | |
xdebug.remote_mode = req | |
xdebug.remote_port = 9005 #if you want to change the port you can change |
This file contains hidden or 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
# smartctl -a -d megaraid,"(X)" /dev/sd"(X)" | |
The first X is the disk number so it should be something like megaraid,0 for the first disk and 1 for the second and so on, while the second X is the variable for the virtual drive like /dev/sda is the first VD and SDB will be the second and so on.. | |
If this did not work for you then, kindly provide me the login details of your server to follow up. | |
https://kb.leaseweb.com/products/dedicated-server/troubleshooting-hard-disk-and-raid |
This file contains hidden or 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
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc |