Skip to content

Instantly share code, notes, and snippets.

@dimMaryanto93
dimMaryanto93 / install.sh
Created August 31, 2017 15:22
Solving problem Can't login mariadb into Ubuntu 16.04
apt-get install mariadb-server && mysql_secure_installation
# login as super user
sudo -i
# login as root in mysql
mysql -u root -p
# to change the password use this statement into mysq_console
mysql> grant all privileges on *.* to root@localhost identified by 'admin';
add-apt-repository -y ppa:webupd8team/java && \
add-apt-repository -y ppa:maarten-baert/simplescreenrecorder && \
apt-get update && \
apt-get upgrade && \
apt-get install ubuntu-restricted-extras ubuntu-restricted-addons unity-tweak-tool nautilus-dropbox \
chromium-browser openshot flashplugin-installer bleachbit gimp inkscape nodejs build-essential postgresql \
mysql-server mysql-workbench maven tomcat8 tomcat8-admin virtualbox synaptic \
vlc blender oracle-java8-installer simplescreenrecorder unace unrar zip unzip p7zip-full p7zip-rar \
sharutils rar uudeview mpack arj cabextract file-roller brasero audacity sqlite mypaint darktable gparted \
gsmartcontrol vim tmux gitg pgadmin3
# oracle 10g xe 10.2.0
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export PATH=$ORACLE_HOME/bin:$PATH
ORACLE_SID=XE; export ORACLE_SID
# oracle 11g xe
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export PATH=$ORACLE_HOME/bin:$PATH
@dimMaryanto93
dimMaryanto93 / .bash_profile
Last active December 13, 2020 04:53
Bash profile on macOS
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
export ANDROID_HOME=~/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$JAVA_HOME/bin
alias android-emulator='$ANDROID_HOME/emulator/emulator -avd Nexus_5X_API_30'
docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=admin93@docker' -e 'MSSQL_PID=Express' -p 1433:1433 -v sqlvolume:/var/opt/mssql -d microsoft/mssql-server-linux:2017-latest
@dimMaryanto93
dimMaryanto93 / .bash_profile
Last active April 3, 2021 05:36
Oracle Database 18c XE
PATH=$PATH:/opt/oracle/product/18c/dbhomeXE/bin
export ORACLE_SID=XE
export ORAENV_ASK=NO
export ORACLE_HOME=/opt/oracle/product/18c/dbhomeXE
export ORACLE_BASE=/opt/oracle
export PATH
@dimMaryanto93
dimMaryanto93 / daemonssh-jboss.sh
Last active August 24, 2018 09:21
script for kill jboss runner and startup
# show pid jboss eap on runtime
ps -ef | grep jboss
# kill process
kill -9 [pid]
# start jboss server
nohup /opt/jboss-eap/bin/standalone.sh > /dev/null 2>&1 &
@dimMaryanto93
dimMaryanto93 / 01-network-manager-all.dhcp.yml
Last active April 6, 2025 15:23
network settings for ubuntu 18.04 server with wifi and ethernet
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
dhcp4: yes
dhcp6: no
optional: false
## find pid service
ps -ef | grep mtproxy
## start service telegram
mtproxy --seed SEED --addr 0.0.0.0:1984 &
## example output
#tabeldata@tabeldata-server1:~$ Secret: da5e401cb3ff5a148bb25fede7956a50
#Ip: 0.0.0.0
#Port: 1984
@dimMaryanto93
dimMaryanto93 / nexus.service
Last active September 28, 2018 12:18
nexus proxy
[Unit]
Description=nexus service
After=network.target
[Service]
Type=forking
ExecStart=/opt/nexus-sonatype-oss/nexus-3.13.0-01/bin/nexus start
ExecStop=/opt/nexus-sonatype-oss/nexus-3.13.0-01/bin/nexus stop
LimitNOFILE=65536
Restart=on-abort