blackhalt.redbubble.com

Šis ir tas, ko Tu meklēji!
IK Bricis | Mēbeļu izgatavošana un uzstādīšana
mēbeļu izgatavošana pēc pasūtījuma. Mebeles.

Halloween clip art, galerija, 3D, photo ...
PhotoBlogSite

Anekdotes par dažādām tēmām. Gan jaunas anekdotes, gan vecas. Anekdotes

Kā to sauc?

► Vārdadienas

► Game

► Lieldienas

► Līgo, Jāņu tautasdziesmas

► Ziemassvētku tautasdziesmas

► DeepDream

Command Line Magic

The other day I was in a sales demo and the sales engineer opened up a terminal. 😊 Then he tried to run his home directory. 😩

Tue, 22 Oct 2019 00:53:58 id

[Ctrl-R] % # In #vim insert mode, insert the current filename exactly as it was given in the command argument into the document.

Fri, 18 Oct 2019 00:06:22 id

grep -rh ^use --include="*.pl" --include="*.pm" . | sort | uniq -c # Not perfect, but gives you a start on the Perl… https://t.co/yP8t54sOPM

Thu, 17 Oct 2019 23:00:18 id

paste --delimiter=' ' 1.csv 2.csv # "zip-merge" two files line by line. Using a newline between each line of each file.

Thu, 17 Oct 2019 21:38:46 id

cut -d: -f2-4,7 --complement </etc/passwd # Cut the complement of columns 2-4,7. So in other words, gives you 1,5-6,8-.

Thu, 17 Oct 2019 20:25:47 id

sudo(){ sudo $@ || play homer-doh.wav; } # The other way people pronounce sue dew.

Thu, 17 Oct 2019 00:17:29 id

du -sh * | sort -h # Sorting du output by human readable size. Your version of sort may not have the -h option yet.

Wed, 16 Oct 2019 23:01:03 id

dig org +dnssec # Use the +dnssec option to make dig return DNSSEC records for the .org TLD.

Wed, 16 Oct 2019 21:43:01 id

find . -type f -name '*.css' -print0 | xargs -0 grep -i button # Search for button, recursive in all CSS-Files. Use… https://t.co/WiWQnAj5vK

Mon, 14 Oct 2019 15:58:52 id

curl https://t.co/dYZ4OsBusp # Easy way to find your public IP address that is friendly to CLI users. There are man… https://t.co/4s9a4QhI9y

Sat, 12 Oct 2019 19:36:51 id

Chuck Norris can use "cd .." to break out of a docker container. https://t.co/2gcFnuexxK

Sat, 12 Oct 2019 18:56:58 id

[Ctrl-d] # This indicates to the program that there is no more input. In the shell, this usually closes the shell.

Sat, 12 Oct 2019 18:41:25 id

[Ctrl-u] # Delete everything from the cursor to the beginning of the line. This can also be used to clear a password attempt and start over.

Sat, 12 Oct 2019 18:15:25 id

[Ctrl-w] # Delete the previous word on the command line (before the cursor). This is highly useful when reusing old commands.

Sat, 12 Oct 2019 07:58:26 id

[Ctrl-l] # This is usually equivalent to running 'clear'. Its usually quicker and doesn't leave the command in your command line history.

Sat, 12 Oct 2019 07:13:51 id

[Ctrl-_] # Incremental undo of command line edits.

Sat, 12 Oct 2019 06:32:05 id

[Meta-#] # Comment out the current command from the beginning of the line. Faster than [Ctrl-a] then #.

Sat, 12 Oct 2019 05:39:08 id

zless, zgrep, zcat, zdiff # There are helper commands for dealing with compressed files (gz, bz2 and xz). They have a z, bz or xz prefix.

Sat, 12 Oct 2019 05:05:07 id

Remember that certificate you created 10 years ago with a 10 year expiration time thinking you wouldn't need to wor… https://t.co/JVkE6mJguK

Sat, 12 Oct 2019 04:16:28 id

[Meta-.] # Insert the last argument from the previous line in the command history into the current line. This is di… https://t.co/SsgpM3eWMD

Sat, 12 Oct 2019 03:33:34 id

Those asking "Why not use Home and End?" These aren't setup in every distribution or are setup incorrectly. Some keyboards also lack them.

Sat, 12 Oct 2019 02:50:34 id

[Ctrl-e] # Move your cursor to the end of the line. Faster than holding down right arrow.

Sat, 12 Oct 2019 02:15:50 id

[Ctrl-a] # Move your cursor to the beginning of the line. Faster than holding down left arrow. In screen, you need to press <Ctrl-a a>

Sat, 12 Oct 2019 01:20:53 id

[Ctrl-r]string # Reverse search through your command history for 'string'. Press Ctrl-r again to continue searching backwards. ESC when done

Sat, 12 Oct 2019 00:25:14 id

ascii || man ascii # The || logical OR operator will run the second command only if the first command fails. For in… https://t.co/siQlWSZGyt

Fri, 11 Oct 2019 23:51:44 id

tmux # tmux is a great program that manages multiple terminal sessions and allows you to detach/reattach to the session. Also screen, dvtm.

Fri, 11 Oct 2019 22:56:02 id

ps auxww | tee output.log # Use the 'tee' command to save a copy and see the output of a program at the same time.

Fri, 11 Oct 2019 22:12:59 id

man -k sound # Use -k to search for something in all man pages, like 'sound'.

Fri, 11 Oct 2019 21:40:24 id

help cd # There are several commands inside bash called 'built-ins'. You can access info about them using 'help builtin' or just run 'help'

Fri, 11 Oct 2019 20:56:01 id

RT @BellLabs: Photographer and web enthusiast @PeterAdamsPhoto asks, “What if Ken Thompson went to Woodstock in 1969 instead of inventing #…

Fri, 11 Oct 2019 20:40:47 id

Achievement unlocked https://t.co/QsLvyyAaeg

Fri, 11 Oct 2019 20:39:23 id

ls -ltrah # Print detailed list (-l) of all (-a) files reverse sorted (-r) by last modified time (-t) and with human readable size (-h)

Fri, 11 Oct 2019 19:58:18 id

pushd and popd are also common programs you can use for moving around the filesystem. See 'help pushd' and 'help popd' for info.

Fri, 11 Oct 2019 18:59:42 id

cd - # Takes you back to the previous directory you were in.

Fri, 11 Oct 2019 18:28:33 id

Today I'm going to be posting about 20 useful commands and keystrokes to help make you more efficient. I usually post these every 6 months.

Fri, 11 Oct 2019 18:01:23 id

cd # (With no arguments, not even the #) Takes you back to your home directory from wherever you are.

Fri, 11 Oct 2019 17:47:25 id

If you still use iTerm2 on Mac, you will want to be aware of this newly discovered remote code execution vuln: https://t.co/4BMopTN1TQ

Fri, 11 Oct 2019 17:01:58 id

RT @LeahNeukirchen: Enjoy: Ken Thompson's Unix password https://t.co/r58gTT1DDB

Thu, 10 Oct 2019 16:42:25 id

90% said yes. I find these results quite satisfying. https://t.co/QBzxK50lsQ

Wed, 09 Oct 2019 21:23:20 id

RT @krisnova: Would you go see a talk that was presented exclusively from a linux terminal?

Wed, 09 Oct 2019 16:11:02 id

RT @Quuux: @climagic reminds me https://t.co/5OPFSEdYUv

Sat, 05 Oct 2019 01:53:34 id

Have you ever kill -9'd a process?

Sat, 05 Oct 2019 00:19:04 id

pasteunwrap(){ { xsel -b || pbpaste; } 2> /dev/null | tr ' ' ' ' | { xsel -b || pbcopy; } 2> /dev/null; } # Func… https://t.co/8aa37mvofR

Thu, 03 Oct 2019 21:51:07 id

Unix-like features you really miss when using cloud services. Go.

Wed, 02 Oct 2019 23:16:44 id

RT @ExaGridDba: Check a json file $ cat t.json { "k": "v" } $ jq < t.json . > /dev/null $ cat t.json { "k": "v" }} $ jq < t.json . >…

Mon, 30 Sep 2019 21:11:57 id

sleep 1 ; for i in {1..50} ; do xdotool type "Dgz-.15^Mrz5^M" ; done # Using xdotool, you can automate keypresses a… https://t.co/clkmv9V8gh

Mon, 30 Sep 2019 05:08:49 id

for i in IMG_{4550..4622}.JPG ; do [ -e $i ] && convert $i -quality 75 -resize 50% ~/legoframes/$i ; done # Resize… https://t.co/Tavi82dEm8

Sun, 29 Sep 2019 19:01:46 id

RT @binarytemple: @climagic @domchristie use turndown service to convert all html files to markdown (zsh) `for f in ./*.html ; do curl -XPO…

Thu, 26 Sep 2019 21:20:28 id

Poetic command options: docker build --no-cache

Tue, 24 Sep 2019 01:54:24 id

Network trouble excuse: ICMP Echo Response packets sent through Large Hadron Collider via routing table. That expla… https://t.co/7JL6cbqCP2

Fri, 20 Sep 2019 23:25:09 id

On a Linux desktop, do you ever find yourself closing the GUI software upgrade window and instead doing the upgrade… https://t.co/1OkExZXnac

Fri, 20 Sep 2019 16:04:57 id

RT @TrustedCI: Cybersecurity Center of Excellence (@TrustedCI) receives $12.5M renewal grant from @NSF. Fresh five-year funding ensures con…

Fri, 20 Sep 2019 05:07:53 id

The Internet has serious integrity issues and I ain't talking about the technology.

Fri, 20 Sep 2019 03:22:42 id

RT @haggen: Gonna read one verse every night. https://t.co/fVOqucxFxe @climagic

Thu, 19 Sep 2019 16:34:42 id

PDP11/70 front panel recreation #Unix50 https://t.co/rd7NLWQSVp

Sun, 15 Sep 2019 01:41:34 id

"Space Cadet" keyboard. It is a bit overwhelming to use. https://t.co/0zSr0D8hmh

Sat, 14 Sep 2019 21:47:12 id

Climagic / 8-bit guy (https://t.co/eOUexgGtwF) crossover https://t.co/7fjNiiqYad

Sat, 14 Sep 2019 21:01:01 id

Old Ma Bell Unix, vi and C quick reference guides. And yes, it shows how to quit vi on the 2nd page. #Unix50 https://t.co/0eN8VYyoYK

Sat, 14 Sep 2019 20:46:47 id

Climagic / @lazygamereviews crossover https://t.co/lmASNjev2B

Sat, 14 Sep 2019 18:10:45 id

Unix on a C64 with GeckOS. Thanks @gholmer and @afachat https://t.co/UqaQFFOvba

Sat, 14 Sep 2019 17:40:57 id

Since it's Unix's 50th anniversary this summer, I decided to visit Vintage Computer Festival Midwest… https://t.co/BH3dVu1hAJ

Sat, 14 Sep 2019 00:42:34 id

Just watched a project presentation which showed their financial model included a line model specifically for syste… https://t.co/t2m7RMCb3u

Fri, 13 Sep 2019 17:53:32 id

RT @adamhotep: `grep -C0 PATTERN` will delimit between non-contiguous matching lines. I had never tried asking for "zero context" until tod…

Fri, 13 Sep 2019 00:49:03 id

grep "> From: " LocalMailFolder | egrep --col=never -o "<.+" | tr -d '<> =' | sort | uniq # I needed to grab the e… https://t.co/Xmk9zJSrfH

Mon, 09 Sep 2019 18:08:41 id

Today in history in 1941, Dennis Ritchie was born, and the world would never be the same again. A life is a powerfu… https://t.co/AuMr6hpI15

Mon, 09 Sep 2019 16:46:11 id

Orchestra value return type: String LOL! https://t.co/TV2AGyjXBy

Sun, 08 Sep 2019 20:55:21 id

https://t.co/5G8QuXWXaV # Regex based crossword puzzle. It's good fun practice and keeps you sharp. Plus you can te… https://t.co/oB1yMpsQfJ

Fri, 06 Sep 2019 17:22:25 id

echo | { xsel || pbcopy; } # Copy a newline to your clipboard so you can paste it into brain dead web applications… https://t.co/7sWAzhNSo4

Tue, 03 Sep 2019 16:25:36 id

sed 's/./& /g' ids.txt | sort | uniq # Produce a list of all the unique characters used in a file. Useful if you n… https://t.co/9uysuKZPHG

Fri, 30 Aug 2019 21:13:11 id

Me after hour 1 of 2 of letting a colleague use my laptop. https://t.co/kvTAYT1vGj

Thu, 29 Aug 2019 20:58:15 id

yes $COLUMNS $LINES|awk 'BEGIN{x=y=e=f=1}{if(x==$1||!x){e*=-1};if(y==$2||!y){f*=-1};x+=e;y+=f;printf "33[%s;%sH",… https://t.co/Rrxn3erQZu

Wed, 28 Aug 2019 17:42:12 id

No love for closed source https://t.co/PWUbG0Pp2T

Tue, 27 Aug 2019 20:13:06 id

find . ( -name '*.txt' -o -name '*.md' ) ! -empty # Find .txt or .md files under the current directory that are not empty (> 0 bytes).

Tue, 27 Aug 2019 17:57:16 id

ls -l --full-time || ls -l -T # If the date provided by -l isn't giving you enough detail (omitting time of day), t… https://t.co/VcyYnkPQ3D

Mon, 26 Aug 2019 20:25:46 id

curl --remote-name 'http://www.example.com/images/IMG_[0001-0176].JPG' # Download images in sequence IMG_0001.JPG through IMG_0176.JPG

Wed, 21 Aug 2019 17:17:55 id

resolvectl status systemd-resolve --status journalctl -u systemd-resolved -f sudo systemctl edit systemd-resolved s… https://t.co/ANkeOEZrjp

Sat, 17 Aug 2019 15:14:30 id

sudo iwconfig wlan0 # Show details about your WiFi connection (interface wlan0) including wireless speed and quality. Thx @feressiadis

Fri, 16 Aug 2019 21:04:15 id

split -l 500 largefile splitfile- # Split a file into 500 line files called splitfile-xaa, splitfile-xab, etc. Usef… https://t.co/S4ki8F8twv

Fri, 16 Aug 2019 20:39:44 id

split -b 1G verylargefile split- # Split a file called largefile into 1 gigabyte pieces called split-xaa, split-xab, split-xac ...

Fri, 16 Aug 2019 20:18:04 id

apt-file search /usr/bin/strings # On Debian and derivatives, figure out what package you need to install to get th… https://t.co/dKArA7QUk7

Thu, 15 Aug 2019 18:26:40 id

Intel gigabit nic: "I'm tired." [hardware breaks] Put in 20 year old Netgear FA310tx to fix/diagnose. Intel nic got… https://t.co/3qot5UAY7r

Thu, 15 Aug 2019 06:32:25 id

dd if=/dev/xvdf bs=1M skip=800 | tr -d '00' | less # The dd command has a skip option that can help you start you… https://t.co/5bERf9ZbqN

Wed, 14 Aug 2019 17:17:13 id

RT @vboykis: Drafts I had to delete because they were going nowhere fast. https://t.co/mqz69Qz00f

Sun, 11 Aug 2019 00:08:49 id

My dad doesn't seem to be aware that he keeps telling me the same UDP joke over and over again.

Fri, 09 Aug 2019 20:55:29 id

t stream search -l security | awk '!/ RT @/' # Stream list all the tweets including the word 'security', but filte… https://t.co/4ZKFu99Q1W

Thu, 08 Aug 2019 22:33:05 id

ping 8.8.8.8 | stdbuf -oL awk -F[= ] '/from/{ms=$(NF-1); print ms/1000.0 " " 1-ms/1000.0}' | while read on off ; d… https://t.co/d4nDLViZNH

Wed, 07 Aug 2019 21:54:05 id

find . -iname '*expenses*' # Remember, find has a case insensitive way to search for filenames: -iname

Tue, 06 Aug 2019 16:41:25 id

Question for vi users with non-latin character keyboards. How are vi commands typed if you don't have latin charact… https://t.co/rXgYmHCoHZ

Mon, 05 Aug 2019 15:02:51 id

How about you. Are you OS agnostic?

Wed, 31 Jul 2019 22:11:25 id

nc -q1 -lvp 1234 < file.txt # poor man's file serve. Use nc serverhost 1234 > output.txt to retrieve file from remote host. NAT bugs this.

Mon, 29 Jul 2019 22:46:05 id

I'm at #PEARC19 @PEARC_19 this week. Are you here too? Say hi. You can find me by spotting my climagic badge. https://t.co/vvn38HJrKR

Mon, 29 Jul 2019 19:06:55 id

Happy 60th Birthday to Keith Bostic, developer of nvi, Berkley DB and one of the principle developers of BSD Unix.

Fri, 26 Jul 2019 21:12:51 id

du -sh * | sort -h # Show file size in human readable fashion (MB, GB, etc.) and sort by the human readable amount. Requires GNU sort.

Thu, 25 Jul 2019 18:04:13 id

xev # This X program is useful for seeing the keycodes and symbols generated by your keyboard. Go ahead, run it now… https://t.co/FgIgm22Ex5

Thu, 25 Jul 2019 05:16:01 id

RT @archang3l_media: @climagic Setting defaults for shell variables is magic in bash: ${VAR:-use_this_if_var_is_undefined} simply beautiful

Wed, 24 Jul 2019 00:18:43 id

Papa bear ran 'last -da -20' and said "Look! Someone's been logging into my server".... (Now your turn)

Tue, 23 Jul 2019 17:28:35 id

look discover # Find all the dictionary entries starting with disocover so that you can find out what the proper 'a… https://t.co/4CGl26cikE

Mon, 22 Jul 2019 23:36:23 id

while true ; do sleep 120 ; killall -9 blender ; done # I was testing the latest beta version of Blender 3D, but ha… https://t.co/jnvJAbQLCj

Mon, 22 Jul 2019 20:32:34 id

tail -f messages | awk '/ec:8a:dc:09:e1:2f/' # I find it easier to use awk to search for lines with a string when u… https://t.co/lbewuOWVtb

Fri, 19 Jul 2019 00:21:37 id

[Line separators in various systems] Unix: LF Windows: CR LF HTML: Line separators? We ain't got no line separators… https://t.co/bvaRxeBgrN

Thu, 18 Jul 2019 06:58:28 id

RT @neil_h_watson: { myjob; xmessage DONE; } & # alert me when a job is done so I don't have to waste time watching it. { sleep 5m; xmessa…

Thu, 11 Jul 2019 20:36:33 id

RT @jdpearce: Everyone is sharing the Zoom vuln, but the crucial bit is this : $> lsof -i :19421 $> kill -9 <pid> $> rm -rf ~/.zoomus $> t…

Thu, 11 Jul 2019 03:10:42 id

Hey kids, can you spot how this mock scientist research desk on display at an aquarium is related to the command li… https://t.co/GsrGZJl7l1

Tue, 09 Jul 2019 22:21:38 id

Me: sleep 8h My Hotel Neighbor: wall "Fsck! Fsck! Fsck! Fsck!"

Tue, 09 Jul 2019 01:37:09 id

Control character origins (^G = BEL) https://t.co/ISOTzRZZLU

Mon, 08 Jul 2019 00:19:13 id

telnet https://t.co/7bHskSM7kt # For maps in your terminal from OpenStreetMap. Use arrow keys to move around and a… https://t.co/74GV79RQjv

Sun, 07 Jul 2019 17:57:00 id

Hey I think I can win this game. 😜 https://t.co/4HrPn25rDx

Sun, 07 Jul 2019 04:15:02 id

RT @nixcraft: I like my beer like I like my Linux operating system, free and open! CEO must be a fan of Unix like systems. Thanks https://t…

Fri, 05 Jul 2019 15:57:19 id

curl -s -L t.co/YG3gLKwG9G | grep -o -P '(?<=<meta property="og:description" content="“).*(?=”">)' # GET the tw… https://t.co/FJSvrTIMmR

Thu, 04 Jul 2019 21:07:55 id

dig whydoesmyjunkhurt.private​.search @8.8.8.8 # Are you letting Google know your personal issues via DNS? Try to s… https://t.co/xPSQVupcPw

Wed, 03 Jul 2019 21:10:30 id

curl -L https://t.co/li9aOMxny8 | egrep -o ".{0,500}find with prune.{0,500}" # On the web you can encounter some ex… https://t.co/9WrY4f857I

Wed, 03 Jul 2019 14:14:43 id

wget 'https://t.co/e5tXDTI85W' # When copying a URL to the command line, you should use single quotes around it to… https://t.co/KuKnllrk6a

Tue, 02 Jul 2019 17:14:33 id

gunzip when the partition is nearly full https://t.co/VkjbDjCpJl

Mon, 01 Jul 2019 18:57:26 id

These "E" books are still working after 4300 years. We need to do better with our own data. https://t.co/q73BE8yWah

Sun, 30 Jun 2019 16:36:45 id

for d in {0..364} ; do date -d "2019-01-01 + $d days" +%Y%m%d ; done # Sometimes you want to generate a list of val… https://t.co/CbZRv2OcAP

Mon, 24 Jun 2019 18:03:51 id

Requests; What aspect of command line usage would you like to see more posts about?

Wed, 19 Jun 2019 20:33:37 id

Next week I'll be providing training at a high school cybersecurity camp in Indianapolis. Still a few spots left: https://t.co/3euONL3YyV

Wed, 19 Jun 2019 18:59:15 id

cd /tmp || cd /var/run || cd /mnt || cd /root || cd / || echo "dude your server is really screwed up, I'm outta her… https://t.co/OstO3QecIX

Wed, 19 Jun 2019 18:52:05 id

Tip: To protect yourself from accidentally doing a terminal dump to your default printer (ie. pressing Ctrl+PrintSc… https://t.co/L3zLFi10fr

Tue, 18 Jun 2019 21:57:24 id

Do you have modelines turned on in vim? Check with :verbose set modeline? If it says 'nomodeline Last set from ...… https://t.co/tXyxRhEp7G

Mon, 17 Jun 2019 23:35:35 id

C="254,278" PP="30,362 212,44 350,287 272,287 212,187 70,430"; convert -size 500x500 xc:#101 -alpha on -stroke gre… https://t.co/LmFoRnBJBD

Mon, 17 Jun 2019 14:17:28 id

command ls # In bash, you can use 'command' to force executing a command as it is found in your path, ignoring func… https://t.co/2l6DNqiw21

Fri, 14 Jun 2019 18:17:46 id

Ctrl-B % # In tmux, this keystroke will split your current window vertically into two parts called panes. You can a… https://t.co/0PoXmJ2mAB

Thu, 13 Jun 2019 20:12:53 id

awk '$1=="192.168.1.207"' access.log | pee 'sed -n "1p;$p"' 'wc -l' # Search access.log for IP 192.168.1.207 and p… https://t.co/ylgpFIfG9W

Wed, 12 Jun 2019 22:24:41 id

RT @orsinium: Draw bar chart of channels of Wi-Fi networks around: sudo iwlist wlp3s0 scan | grep (Channel | grep -P ' d+' -o | sort -g…

Wed, 12 Jun 2019 06:14:43 id

RT @ramix: HTTP script kiddie IP detection ordered by IP: awk '/" 404/{print $1}' /var/log/apache2/access.log | uniq -c | sort -n @climag

Wed, 12 Jun 2019 03:29:20 id

FYI: In the browser version of Twitter, you can use vi movement keys j and k to move up and down the list of tweets. Thanks @rolando

Tue, 11 Jun 2019 16:26:45 id

Loading... [waiting for a few minutes] Please insert disk 2 https://t.co/opctAlQC7P

Mon, 10 Jun 2019 22:53:57 id

Happy 30th Birthday /bin/bash! Thanks to its developers Brian Fox and Chet Ramey and all those who have contributed… https://t.co/XM1dtvTvAf

Sat, 08 Jun 2019 15:43:51 id

Did your parents meet on IRC?

Fri, 07 Jun 2019 22:17:00 id

play -M mic1.wav mic2.wav # Merge two audio files together and play them as one track.

Fri, 07 Jun 2019 21:35:48 id

Were/are your parents a regular user of *nix command line shells such as bash, zsh, sh, ksh, fish, pdksh, etc. ?

Fri, 07 Jun 2019 21:28:15 id

Where/are your parents regular *nix users?

Fri, 07 Jun 2019 20:58:18 id

last -p "2019-06-04 01:31:00" # A newer option of the last command allows you to print the users who were logged in… https://t.co/jjrP3h3Gld

Fri, 07 Jun 2019 00:19:14 id

[ENTER]~. # This sequence will close an OpenSSH session from the client side (same as killing the ssh client proces… https://t.co/ItHR5a8r31

Thu, 06 Jun 2019 22:23:19 id

while pidof dd ; do sleep 1; done; date # Don't watch the clock yourself, run date after the last dd command is done.

Thu, 06 Jun 2019 21:39:20 id

cal -3 # Show a 3 month view (before, current, after) in cal. https://t.co/uDtxieiYsU

Thu, 06 Jun 2019 18:10:12 id

Know a high school student looking for a great summer camp? Try to this cybersecurity camp in Indianapolis June 25-… https://t.co/2Bwf4PUAlh

Thu, 06 Jun 2019 17:56:46 id

convert -size 192x108 xc:black blackthumbnail.png # Help your #Youtube videos standout in the crowd with these blac… https://t.co/jkflo9CjR8

Wed, 05 Jun 2019 16:44:16 id

echo $[RANDOM%9+1] > /dev/udp/lights.climagic.org/45444 # Send a random number to change the corresponding light on… https://t.co/54CF9gBXhF

Tue, 04 Jun 2019 18:51:09 id

RT @moritzdietz: Whoa “Starting with the macOS Catalina beta, your Mac uses zsh as the default login shell and interactive shell.” https://…

Tue, 04 Jun 2019 16:38:14 id

RT @jgomo3: cat > file.txt # Cheap note taking application rlwrap cat > file.txt # Nicer cheap note taking application @climagic

Wed, 29 May 2019 16:42:14 id

Have I told you about Arch Linux? https://t.co/qTSli0aMKQ

Tue, 28 May 2019 22:56:35 id

If you don't know where the output is going, then you are the file. https://t.co/iDZnm4Ysr3

Sat, 25 May 2019 21:32:34 id

RT @BriceDutheil: zcat large_file.gz | tee >(grep -F patternA > A-matches) >(grep -F patternB > B-matches) > /dev/null # Grepping two patt…

Fri, 24 May 2019 17:16:25 id

touch /tmp/TheSmellOfThisRoomIsGivingMeAHeadache # Gotta love it when one of your students uses /tmp to communicate their feelings. :)

Fri, 24 May 2019 17:15:15 id

Me with Michael Grobe, co-author of the Lynx web browser (right), and Ryan Kiser (center) https://t.co/5Tui1HKFUZ

Thu, 23 May 2019 04:59:03 id

RT @bendhalpern: The command line isn't so scary, it's actually pretty fun! #DevDiscuss

Wed, 22 May 2019 14:38:20 id

Please tell me that someone has shown this image at a Landscape Architecture conference because I've seen in many t… https://t.co/uodoT4JPG5

Wed, 22 May 2019 03:04:41 id

Baltimore.... they should call it Backupmore

Tue, 21 May 2019 18:51:49 id

less $( grep -li rehearsal $( find Maildir -type f -mtime -30 ) ) # "Where is that damn rehearsal email at?" Check… https://t.co/NCymgfqxa5

Mon, 20 May 2019 16:31:52 id

sudo lsof -i TCP:443 # Print the processes that are either listening on TCP port 443 and connecting to port 443 on… https://t.co/wlyNDnyQcP

Wed, 15 May 2019 18:53:18 id

vim *.vbox # Just sometimes I get lazy and realize it would be faster to match a single file by using a wildcard be… https://t.co/35Q1343OZf

Mon, 13 May 2019 18:06:31 id

When you accidentally cat a binary file. https://t.co/cSje3PsXv9

Fri, 10 May 2019 19:42:08 id

sudo find / -xdev -newermt 2018-03-20 ! -newermt 2018-04-10 -type f -ls # Find files on the local filesystem modif… https://t.co/FmcTaQWcte

Fri, 10 May 2019 17:39:50 id

RT @samvittighed: @climagic parallel -q convert -size 300x300 xc:black -stroke green -draw '{= sub l{ ($r,$v)=@_; $v*=atan2(1,0)*4/360; "li…

Fri, 10 May 2019 16:39:23 id

Happy 50th Birthday to Marc Ewing, co-founder of Red Hat and the reason for it's name (because he wore a red fedora… https://t.co/J3wp2gnaJy

Thu, 09 May 2019 19:48:25 id

grep -r waldo /tmp ~/Documents ~/.config /etc # An old bad habit of mine is to search a directory at a time instead… https://t.co/mXKYgDRpQa

Thu, 09 May 2019 18:16:32 id

n=0;p=3.14159;for i in {0..360};do x=$(bc -l <<<"150*$p*2/360)*$i)"|numround);y=$(bc -l <<<"150*$p*c(($p*2/360)*$i)… https://t.co/lNTc5BQYBr

Thu, 09 May 2019 06:00:39 id

That feeling when your ephemeral VPS randomly gets an IP starting with 3.14.x.x, but then realize IPv6 exists. https://t.co/aj9PKDl9ma

Wed, 08 May 2019 20:14:29 id

RT @sur5r_: TIL: curl --connect-to Very handy when testing a new vhost before enabling it via DNS @climagic

Wed, 08 May 2019 19:45:16 id

I called it. Well, almost. https://t.co/W2mSpkm8Em

Wed, 08 May 2019 06:57:57 id

grep "imapd.*LOGIN FAILED, method=" /var/log/maillog | egrep -o "[0-9.]{7,15}" | awk '{print $NF}' | xargs -n1 geo… https://t.co/dBodvYzIba

Tue, 07 May 2019 22:16:26 id

I made this MS Terminals 10 logo a few years ago: https://t.co/I30ZCcIPXf https://t.co/7Hp5NavyHj

Tue, 07 May 2019 04:51:36 id

Yes, right now something related to terminals and the command line is trending globally. Sure, it's Windows Termina… https://t.co/oExC04BHzB

Mon, 06 May 2019 23:20:42 id

shopt -s nocaseglob # Ever want to make your shell glob wildcards be case insensitive? Well this option will turn t… https://t.co/DMhGw3wqsS

Mon, 06 May 2019 18:43:35 id

sudo !! # Run sudo on the last command in your history. Be careful though. <Up Arrow> & [Ctrl-a] sudo can be fast t… https://t.co/z2v0X8Bi7j

Fri, 03 May 2019 18:03:28 id

I'm making a handout Linux VM for students to use for a variety of security exercises at a high school cybersecurit… https://t.co/I7InGxnYDP

Fri, 03 May 2019 17:20:42 id

dig +short https://t.co/oWHDzhRbIO | tr ' ' ' ' ; echo # Return a list of all the IPs for a DNS record on one line… https://t.co/mdql1epKN6

Fri, 03 May 2019 13:42:22 id

at 4:50pm <<<"play -n synth pl C3 trim 0 1.25 repeat 10" # Inject an audio alarm to run at 4:50pm and play a guitar pluck 10 times.

Thu, 02 May 2019 22:21:47 id

zgrep -P "imapd: LOGIN, user=[^,]+, ip=[::ffff:127.0.0.1], port=[[0-9]+], protocol=IMAP" maillog-2019*.gz maill… https://t.co/1XHtnIGHew

Tue, 30 Apr 2019 18:45:28 id

grep "/$" filefolderlist.txt | cut -d/ -f1-3 | sort | uniq -c # In a list of files and folders with folders ending… https://t.co/3baexsE85y

Mon, 29 Apr 2019 22:10:09 id

sl # List out the files, trains, directories, trains, symlinks, trains, and special train files in your current directory.

Thu, 25 Apr 2019 20:12:29 id

awk '/DHCPACK/ && !a[$8]++' messages # Show the first new request from each mac addr in a dhcp log. Helps you find… https://t.co/7bcfHUJtqu

Wed, 24 Apr 2019 20:08:53 id

sudo strace -p 1205 # See syscalls of PID 1205. Processes don't have to be a black box, you can use strace (on Linu… https://t.co/bPW8krbv4A

Tue, 23 Apr 2019 20:04:26 id

df -h # Print out the partition table with easier more readable quantities like 107G instead of 111547116. The 'h'… https://t.co/rPJwM8LcpX

Tue, 23 Apr 2019 16:11:29 id

w # See who is logged in on a system, what they are running, it's uptime and the system load averages all in one. S… https://t.co/auzWhHiHUK

Mon, 22 Apr 2019 20:54:03 id

In general, do you use mosh or ssh? Or both? Or neither?

Sun, 21 Apr 2019 15:59:14 id

Can you ssh (yes mosh counts too) into a shell on your home router?

Sat, 20 Apr 2019 23:55:32 id

RT @unix_byte: EMACS was originally written by James Gosling in 1981 (yes, the Java guy). In 1984, when Stallman started to develop GNU Ema…

Sat, 20 Apr 2019 19:00:00 id

I think I get now why they named it "slapd". https://t.co/sCMdQF2Kxb

Sat, 20 Apr 2019 06:19:40 id

for i in {01..20}.png ; do scrot -s $i ; echo $i ; done ; convert -delay 50 {01..20}.png -layers Optimize anim.gif… https://t.co/GrOdnj9ZJ8

Fri, 19 Apr 2019 18:22:21 id

yes {1..30} | for i in {1..30} ; do GREP_COLORS="mt=01;$((41+($i%7)))" timeout 1 egrep --color=auto "$i" ; done… https://t.co/wlfHfRgBYo

Fri, 19 Apr 2019 17:35:32 id

for i in [3-9].png ; do mv $i 0$i ; done # Fix some files (matching 3.png, 4.png, ... 9.png) so that they have lead… https://t.co/50J9nUlihZ

Fri, 19 Apr 2019 16:41:22 id

RT @Lucinotion: Estaba probando comandos en Linux y acabo de ver que el tiempo de UNIX acaba de llegar a 1555555555. Cada día un poco más c…

Thu, 18 Apr 2019 05:56:35 id

RT @egyp7: Bash has several builtin ways to manipulate variables. ${foo//bar/baz} will replace all instances of "bar" with "baz" in the var…

Thu, 18 Apr 2019 02:18:15 id

while date +%s | figlet | lolcat ; do sleep 1 ; clear ; done # Watch the Unix clock in style with figlet and lolcat… https://t.co/I98ose5RiB

Wed, 17 Apr 2019 16:12:47 id

zgrep, zcat, zdiff, etc. are an example of command line tools with a good UX because they transparently handle comp… https://t.co/HS5cA9FH6S

Tue, 16 Apr 2019 20:50:00 id

Ah, let's wake up early and do something producti..... OH MY GAWD! Why is that log file 26GB!? [proceeds down rabbit hole A]

Mon, 15 Apr 2019 13:48:21 id

TZ=GMT echo $(( $( date +%s ) / 86400 )) # This Sunday, April 14th is Unix Epoch Day 18000! Happy Anniversary!

Sun, 14 Apr 2019 04:02:03 id

Son, now that you're 6, it's time I taught you about SSH. This is how you ssh into the computer upstairs and play a… https://t.co/R5NShJrHhF

Sun, 14 Apr 2019 03:08:03 id

RT @curusarn: Hey, tech twitter! Do you use any shell history related tools? I'm creating one as my Master's project and I'm currently gath…

Sun, 14 Apr 2019 02:53:42 id

RT @adamhotep: When infosec has to chastise IT (HT @MladenPrajdic) https://t.co/bp56GXWhzk

Sat, 13 Apr 2019 20:41:13 id

Then: "In the future, you'll be able to ask your computer any question with your voice and get an answer instantly.… https://t.co/A8zH1j1IXA

Sat, 13 Apr 2019 02:23:23 id

awk '$3!="-"{print $1}' access_log.2019-* |sort|uniq > ~/login-ips.txt ; grep -v -F -f ~/login-ips.txt access_log.2… https://t.co/XFwtPplZbn

Fri, 12 Apr 2019 22:26:50 id

RT @RawDataLab: #MyNerdiestThing Tough call. But when my linux server finishes booting, it plays an 8-bit version of Sill Alive using beep…

Thu, 11 Apr 2019 20:11:39 id

find ~/ -mmin -60 -xdev -ls # Find less than an hour old files (-mmin -60) in your homedir (~/) and below without c… https://t.co/Cm73tDpHcB

Thu, 11 Apr 2019 18:15:48 id

sort -k2 names1.txt names2.txt | less # Sort two lists of names by the 2nd column (last name) so that you can compa… https://t.co/j9fa8KE6Wm

Wed, 10 Apr 2019 22:14:08 id

Nu ziniet! Tas jūsu puika!

📲