LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

Date and time functions

Posted 12-09-2013 at 12:34 PM by druuna
Updated 01-31-2014 at 04:25 AM by druuna (Small changes to layout)
Tags date, seconds, time

A handful of date and time related functions that might come in handy.
  • Convert a date or time string to seconds from epoch
PHP Code:
# ------------------------------------------------------------------ #
# Function : dateToSecs
# Syntax   : dateToSecs "[date]"
# Convert a date or time string to seconds from epoch.
# ------------------------------------------------------------------ #
function dateToSecs() {
  [[ $
# -eq 0 ]] && date --utc 
...
LQ Veteran
Posted in General
Views 440 Comments 0 druuna is offline
Old

Install the latest stable kernel (3.12.4) for Ubuntu/Debian 64 bit systems

Posted 12-09-2013 at 07:03 AM by exton (Exton's Blog)

I have compiled yet another Ubuntu/Debian kernel for 64 bit systems. This time kernel 3.12.0-7-exton, equivalent to Kernel.org’s latest STABLE kernel 3.12.4, released today (131209).

READ MORE...
ExTiX Admin
Posted in Linux
Views 582 Comments 0 exton is offline
Old

UEFI Drove Me Home... to Puppy

Posted 12-07-2013 at 04:14 PM by zaivala

OK, you read my last blog.

I tried everything. LinuxMint Olivia 64 wrote its entire self to my hard drive. But it would not boot. Still got Windoze, only used my D: (sda4) partition. Thought I'd try the latest Ubuntu.

I got about 4 steps into Ubuntu, NOT including saying "Install", and tried to back out as it did not have good options to select. Then I noticed I no longer had ANY WINDOWS. Contacted ASUS techs, and got no help. Was running Mint off a livedisk...
Member
Posted in Uncategorized
Views 1727 Comments 2 zaivala is offline
Old

A new version of ArchEX dual 64/32 bit is ready!

Posted 12-06-2013 at 12:23 PM by exton (Exton's Blog)
Updated 12-08-2013 at 03:25 PM by exton

WHAT IS ArchEX dual?
ArchEX 64bit/32bit dual is a new (131206) Linux live DVD based on Arch Linux. Arch motto is KISS (Keep It Simple Stupid). ArchEX uses kernel 3.12.3-1-ARCH (latest stable kernel) and the LXDE Desktop environment.

INSTALLATION to hard drive
ArchEX can easily be installed to hard drive of those who so desire. Use ArchEX Installer. I.e. while running ArchEX live from the DVD. Read this INSTRUCTION.

Install ArchEX to a USB Pen Drive
Can...
ExTiX Admin
Views 335 Comments 0 exton is offline
Old

iptables revisited

Posted 12-05-2013 at 04:05 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)

I spent a bit of time revamping my iptables rules on a public torrent/voip server of mine, so I figured I would dump them here (sanitized) for future reference:

Code:
root@dfw:~# iptables -nvL
Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
   47  1896 LOG-DROP   all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID /* SCANS AND SUCH? */
44350 6962K
...
Member
Posted in Uncategorized
Views 357 Comments 0 rocket357 is offline

  



All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration