download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
# ---------------------------------------------------------------------- # | |
# Target DBMS: MySQL 5 # | |
# Project name: Northwind # | |
# Author: Valon Hoti # | |
# Created on: 2010-07-07 20:00 # | |
# ---------------------------------------------------------------------- # | |
DROP DATABASE IF EXISTS northwind; | |
CREATE DATABASE IF NOT EXISTS northwind; |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
sudo cp /etc/sysconfig/network-scripts/route-eth0 /etc/sysconfig/network-scripts/route-eth0 | |
sudo cp /etc/sysconfig/network-scripts/route-eth0 /etc/sysconfig/network-scripts/route-eth1 | |
sudo cp /etc/sysconfig/network-scripts/route-eth0 /etc/sysconfig/network-scripts/route-eth2 |
root@fw:/etc/netplan# cat 50-cloud-init.yaml | |
# This file is generated from information provided by the datasource. Changes | |
# to it will not persist across an instance reboot. To disable cloud-init's | |
# network configuration capabilities, write a file | |
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: | |
# network: {config: disabled} | |
network: | |
ethernets: | |
eth0: | |
dhcp4: true |
On AWS Glue dev endpoint setup Node and npm without sudo [https://www.johnpapa.net/node-and-npm-without-sudo/]
mkdir /mnt/s3/glue && cd /mnt/s3/glue
wget https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz
tar xvf node-v16.14.2-linux-x64.tar.xz
ln -s node-v16.14.2-linux-x64 node
Add node and npm to the path modifying /home/glue/.bash_profile
$ cat /home/glue/.bash_profile
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.7.0; | |
pragma abicoder v2; | |
contract PicarPonto { | |
struct Agente { | |
address sender; | |
string cargo; | |
string nome; |
#!/bin/sh | |
SCRIPT_LOG=logfile.log | |
# https://serverfault.com/questions/103501/how-can-i-fully-log-all-bash-scripts-actions | |
exec 3>&1 4>&2 | |
trap 'exec 2>&4 1>&3' 0 1 2 3 | |
exec 1>$SCRIPT_LOG 2>&1 | |
source ./logger.sh | |
SCRIPTENTRY |
:'SET PASSWORD | |
sudo -i -u postgres | |
psql | |
\password postgres | |
' | |
# RHEL / CentOS 8 | |
# https://www.postgresql.org/download/linux/redhat/ | |
# https://www.postgresql.org/docs/current/runtime.html | |
dnf list installed |grep postgresql |
# Make sure to export the instance ID | |
# export instance_id=$(curl -s http://169.254.169.254/latest/meta-data/instance-id) | |
import boto3 | |
import os | |
from botocore.exceptions import ClientError | |
ec2 = boto3.client('ec2', region_name='us-east-1') | |
volume_info = ec2.describe_volumes( | |
Filters=[ | |
{ |
Installing a Graphical User Interface (GUI) on AWS EC2 Linux-2 | |
sudo amazon-linux-extras install mate-desktop1.x | |
sudo amazon-linux-extras install epel | |
sudo amazon-linux-extras install chromium filezilla | |
sudo yum -y install xrdp chromium filezilla | |
sudo systemctl enable --now xrdp | |
# This will make the graphic interface available to all users | |
sudo bash -c 'echo PREFERRED=/usr/bin/mate-session > /etc/sysconfig/desktop' |