gefvert.org

sed and awk Reference

2019-10-10

Argument Description
 
awk '{print $1}' Print 1st word from lines separated by space
awk -F: '{print $1}' Print 1st word from lines separated by colons
 
sed -n Don't display input lines in output
sed '5d'...
> Keep reading

Short Story: I'm So Sorry

2019-09-06

If you're reading this, let me just say that I'm sorry: So very, very sorry.

I didn't mean for any of this to happen. I'm beyond devastated for all of the lives lost - and the countless destruction it brought. I...

> Keep reading

Common TcpDump Parameters

2019-09-04

Argument Description
 
Output
-A Print packet in ASCII
-e Print MAC address (link-level info)
-x Print packet in hex
--print Print parsed output even if saving packets to file
-w file Write raw packets to...
> Keep reading

Common CURL Parameters

2019-08-21

Argument Description
 
Protocols
--http1.0 Use HTTP 1.0
--http1.1 Use HTTP 1.1
--http2 Use HTTP 2
-4 Resolve domain names to IPv4
-6 Resolve domain names to IPv6
-k Allow insecure connections in SSL
 
**HTTP...
> Keep reading

My List of Ubiquitous Software

2019-08-15

(Really just a list for myself when I reinstall a new computer.)

Productivity

> Keep reading

Common wget Parameters

2019-07-31

Argument Description
 
Requests
--header=x Insert custom header
--method=x Use custom HTTP method
--post-data=STR Set POST data from string
--post-file=FILE Set POST data from file
--referer=x Use custom referer
-t n Number of retries (0=unlimited)
 
Authentication/TLS
--http-user=x...
> Keep reading

Gingerbread Christmas Tower

2018-12-22

Behold --

A stately tower now was made
With candy, frosting and decor;
Three ginger levels keenly laid
Upon another there did soar;
And the peak in brilliance alight
With candied decoration bright
Shone forth on white and frosted floor.
    Each level carefully aligned -
    A testament to...

> Keep reading

Windows CMD reference

2018-08-25

ATTRIB [/s] [/d]

Changes file attributes. /s makes it recursive, /d makes it operate on directories as well. I didn't know about these switches before. Handy.

CALL :label arguments

Neither did I know you could call a label in a batch...

> Keep reading

Michaelangelo and Queen Arabella

2020-02-24

Listen -

I now will tell you a story fair,
Of queen Arabella in distant land
Her wisdom as great as her golden hair
That playfully flowed over shoulders bare -
Like sunrays glittered every strand.
Her knowledge had no discernful bound;
Every problem graceful answer found
And...

> Keep reading

MySQL Function to Calculate Excel-style Dates

2011-10-18

drop function if exists exceldate;

delimiter //

-- Function that returns an Excel-style or Delphi-style date value
-- from a MySQL date. A date value of 0 represents 1899-12-30.</em>
create function exceldate(p_date date)
 returns int
 sql security invoker
begin
 return to_days(p_date) - 693959;
end //

delimiter ;

select...
 > Keep reading