Let's Make Things Better

MySQL Commands

Handy MySQL Commands Description Command To login (from unix shell) use -h only if needed. [mysql dir]/bin/mysql -h hostname -u root -p Create a database on the sql server. create database [databasename]; List all databases on the sql server. show databases; Switch to a database. use [db name]; To see all the tables in the …

Simple Ubuntu install script

#!/bin/sh # update & upgrade # sudo apt-get update sudo apt-get upgrade # add custom sources and PPA’s # sudo sh -c “echo ‘## PPA ###’ >> /etc/apt/sources.list” # ubuntuzilla sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com C1289A29 sudo sh -c “echo ‘deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main #Ubuntuzilla’ >>/etc/apt/sources.list” # vlc sudo add-apt-repository ppa:c-korn/vlc # getdeb wget …

Java – Move cursor position (Any System)

import java.awt.Robot; import java.util.Random; public class MouseMover { public static final int FIVE_SECONDS = 5000; public static final int MAX_Y = 400; public static final int MAX_X = 400; public static void main(String… args) throws Exception { Robot robot = new Robot(); Random random = new Random(); while (true) { robot.mouseMove(random.nextInt(MAX_X), random.nextInt(MAX_Y)); Thread.sleep(FIVE_SECONDS); } } …

WordPress CSS Examples

.entry-header {     display: none; } .page .entry-title {     display: none; } .page #main .entry-title {     display: none; } .blog .entry-content {     display: none; } .jetpack-portfolio-shortcode .portfolio-entry-content {     display: none; } .pants {   color: green;   text-decoration: underline;   font-weight: bold; } #navigation {   …