Skip to content

Instantly share code, notes, and snippets.

View fcaldarelli's full-sized avatar

Fabrizio Caldarelli fcaldarelli

View GitHub Profile
# 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']);
- [email protected]:
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: "$VARIANT"
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'
}
});
package com.tie;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
public class SplashActivity extends AppCompatActivity {
@Override
./node_modules/.bin/react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
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)
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
1. Inserire nel router il parametro che si andrà a modificare nel componente, esempio (in questo caso il parametro è title):
```
return makeHeader({
left: {
image: AppIcons.icons.arrow_back,
onPress: () => navigation.pop(),
text: navigation.state.params?.miotitolo ?? "Titolo di default",
},
right: null,
# 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
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc