this tutorail works, i just summarize. https://winaero.com/blog/rename-computer-linux-mint/
- run command
sudo su
# root access - change the hostname with
new-hostname
in/etc/hostname
and/etc/hosts
files. - run command
hostname new-hostname
this tutorail works, i just summarize. https://winaero.com/blog/rename-computer-linux-mint/
sudo su
# root accessnew-hostname
in /etc/hostname
and /etc/hosts
files.hostname new-hostname
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
function load() { | |
var date = new Date(); | |
var currentDay = date.getDate(); | |
var currentMonth = date.getMonth(); | |
var currentDayStr = currentDay.toString(); | |
var currentMonthStr = currentMonth.toString(); | |
var day_month = currentDayStr.concat('-',currentMonthStr); | |
console.log(currentDay ); | |
console.log(currentMonth ); | |
console.log(day_month ); |
<html> | |
<head> | |
<script type="text/javascript" src="scripts/redirect.js"> | |
</head> | |
</html> | |
public Object invoke(MethodInvocation invocation) throws Throwable { | |
long start = System.currentTimeMillis(); | |
before(invocation.getMethod(), invocation.getArguments()); | |
try { | |
Object result = invocation.proceed(); | |
return result; | |
} finally | |
{ | |
if (invocation != null && | |
invocation.getMethod() != null && |
String hql = "SELECT E.firstName FROM Employee E"; | |
Query query = session.createQuery(hql); | |
List results = query.list(); |