Use the following commands:
- Creating the RAM disk:
$ sudo mkdir /mnt/ramdisk
$ sudo vi /etc/fstab
# Copyright (c) 2019 Relato | |
# MIT-licensed | |
create database dbdemostkovfw DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; | |
use dbdemostkovfw; | |
create table badges ( | |
Id INT NOT NULL PRIMARY KEY, | |
UserId INT, |
From: https://gist.github.com/netgusto/931085fc3673b69dd15a1763784307c5
Note: Replace 192.168.0.5
below by your own interface ip
mac $ socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
mac $ docker run --device=/dev/tty0 -e DISPLAY=192.168.0.5:0 -i -t ubuntu /bin/bash
ubuntu $ apt-get update && apt-get install -y firefox
ubuntu $ firefox
#!/bin/bash | |
USER="zend" | |
PASSWORD="" | |
#OUTPUT="/Users/rabino/DBs" | |
#rm "$OUTPUTDIR/*gz" > /dev/null 2>&1 | |
databases=`mysql -u $USER -p$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database` |
Tutorial | |
Testando Servidor DNS: | |
Na linha de comando, digite:"nslookup" e pressione ENTER | |
na próxima linha digite o endereço do Servidor DNS que você deseja testar e pressione ENTER | |
ex: >www.uol.com.br | |
Server: 192.168.0.26 (seu servidor DNS) | |
Adress: 192.168.0.26#53 (porta em que seu servidor DNS esta trabalhando) |
For lazy readers full listing is here (for curious detailed explanation is provided below): | |
Java < 8 | |
-server | |
-Xms<heap size>[g|m|k] -Xmx<heap size>[g|m|k] | |
-XX:PermSize=<perm gen size>[g|m|k] -XX:MaxPermSize=<perm gen size>[g|m|k] | |
-Xmn<young size>[g|m|k] | |
-XX:SurvivorRatio=<ratio> | |
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled |
#https://www.vivaolinux.com.br/script/Alterando-Ubuntu-de-UTF8-para-ISO88591-(LATIN1) | |
#!/bin/bash | |
# Script para alterar o mapa de caracteres do Ubuntu UTF-8 para ISO-8859-1 (LATIN1) | |
# @uthor Denilson Martins, [email protected] | |
# 03/03/2010 | |
# /etc/environment | |
echo -e "LANG=\"pt_BR"\" >> /etc/environment |
Editar o arquivo abaixo (com vi editor): | |
vi /var/lib/locales/supported.d/local | |
E coloque os locales que você quer que o sistema suporte. A maioria dos usuários brasileiros vai se dar bem com esse conteúdo: | |
pt_BR ISO-8859-1 | |
pt_BR.UTF-8 UTF-8 | |
#tips: http://www.programcreek.com/java-api-examples/index.php?api=org.hibernate.annotations.Parameter | |
package com.supportmycode.model; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.Id; | |
import javax.persistence.GenerationType; | |
import org.hibernate.annotations.GenericGenerator; |
#!/bin/bash | |
# <300 - [Good] | |
# 300> <600 - [Warning] | |
# > 600 - [Critical] | |
MAIL_FROM="root@`hostname`" | |
MAIL_TO="[email protected]" | |
Warningthreshold=300 | |
Criticalthreshold=600 | |
backup=$1 | |
CMD=$(/root/bin/pt-heartbeat -D test --master-server-id 1 --check | cut -d. -f1) |