A new meet up - Terminology

29 views
Skip to first unread message

Jason Ong

unread,
May 22, 2011, 11:30:52 PM5/22/11
to singap...@googlegroups.com
Hi guys,

Just wanna share with y'all good hackers that we [Patrick, Ivan and myself] are organizing the first Terminology meet up at HackerspaceSG on the 25th May 2011, Wednesday. 7:30pm. 


Come join the fun! :)

====

What is Terminology?

It's a meet up for all things terminal! Show off your console foo, share config files, do crazy things on the monospace that we all love so dearly!

When & where is it going to be held?

We're aiming for a monthly meet up starting this 25th May at HackerspaceSG, 70A Bussorah Street, 7:30pm

Do I have to sign up?

Nope. As with all things terminal, it should be free! Come join the fun!

I have something to share. Who should I speak to?

If you have something burning to share, email Jason [velvetpd gmail]. We welcome impromptu quick lightning talks too. :)

--
Cheers,
JasonOng

---
web: http://bit.ly/jasonong

shinyee

unread,
May 22, 2011, 11:37:28 PM5/22/11
to singap...@googlegroups.com
Can't access the link.

--
You received this message because you are subscribed to the Google Groups "Singapore Ruby Brigade" group.
To post to this group, send email to singap...@googlegroups.com.
To unsubscribe from this group, send email to singapore-rb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/singapore-rb?hl=en.

Meng Weng Wong

unread,
May 22, 2011, 11:41:53 PM5/22/11
to singap...@googlegroups.com, HackerspaceSG, Meng Weng Wong
On this note, i want to recommend Neal Stephenson's In the Beginning was the Command Line


boo...@hotmail.com

unread,
May 22, 2011, 11:48:13 PM5/22/11
to singap...@googlegroups.com
Damn my laptop just spoilt yesterday. No way to use it period.

Sent via BlackBerry from SingTel!


From: shinyee <cshi...@gmail.com>
Date: Mon, 23 May 2011 11:37:28 +0800
Subject: Re: [SRB] A new meet up - Terminology

Jason Ong

unread,
May 22, 2011, 11:52:05 PM5/22/11
to singap...@googlegroups.com, HackerspaceSG, Meng Weng Wong, beerm...@googlegroups.com
Yikes. Pen.io seems to be down. Not sure if it's us hackers or Evernote's hiring page.

Anyhow here's an alternate site info on Terminology#1. 

xman

unread,
May 23, 2011, 12:42:44 AM5/23/11
to singap...@googlegroups.com
I'm curious if anyone likes the following idea on terminal:

When you want to delete something, you create a .deleted folder and move the something into it.
So anytime you realized you accidentally deleted something, you can recover from the .deleted folder easily.
From time to time, you can clear out all the deleted things with another command.

Examples:
$ xrm a.txt b.txt    # Move a.txt and b.txt into .deleted

$ xlist_rb    # List all intact deleted files.
Listing deleted files in recycle bin.
1: /home/user/tmp/./.deleted/a.txt.2011.0523.1222.113558747
2: /home/user/tmp/./.deleted/b.txt.2011.0523.1222.134281120
Listing completed.

$ xclean_rb    # Remove all deleted files with 'rm' command.
Cleaning recycle bin.
Cleaning: /home/user/tmp/./.deleted/a.txt.2011.0523.1222.113558747
Cleaning: /home/user/tmp/./.deleted/b.txt.2011.0523.1222.134281120
Removed 2 item(s). Cleaning completed.


I have this script written and on using since 2006. Anyone interested can get it from me or download from https://github.com/xman/utility

Jason Ong

unread,
May 23, 2011, 12:48:37 AM5/23/11
to singap...@googlegroups.com
On a similar vein, has anybody used git to vc his/her ~/ ?

--
You received this message because you are subscribed to the Google Groups "Singapore Ruby Brigade" group.
To post to this group, send email to singap...@googlegroups.com.
To unsubscribe from this group, send email to singapore-rb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/singapore-rb?hl=en.

Matthew Rudy Jacobs

unread,
May 23, 2011, 12:51:36 AM5/23/11
to singap...@googlegroups.com
On 23 May 2011 12:48, Jason Ong <velv...@gmail.com> wrote:
On a similar vein, has anybody used git to vc his/her ~/ ?

I think quite a lot of people do.

Go steal someone's bash magic.

Jason Ong

unread,
May 23, 2011, 1:05:45 AM5/23/11
to singap...@googlegroups.com
For dot yes. I do that too. But anyone do that for the entire home dir?

--
You received this message because you are subscribed to the Google Groups "Singapore Ruby Brigade" group.
To post to this group, send email to singap...@googlegroups.com.
To unsubscribe from this group, send email to singapore-rb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/singapore-rb?hl=en.

Matthew Rudy Jacobs

unread,
May 23, 2011, 1:14:33 AM5/23/11
to singap...@googlegroups.com
for what reason would you do it?
  • version control
  • backup
It seems massive overkill to me

Jason Ong

unread,
May 23, 2011, 1:18:03 AM5/23/11
to singap...@googlegroups.com
Yes it is. That's why I'm asking if anybody's done anything creative.

xman

unread,
May 23, 2011, 1:20:40 AM5/23/11
to singap...@googlegroups.com
Only git some of the .dot configuration files, and custom installed software from source.

For the git on software, it's mainly for me to track if I ever did hacking the source and forgotten to revert it back :p such as those ruby gems.

xman

unread,
May 23, 2011, 1:32:27 AM5/23/11
to singap...@googlegroups.com
Just a side note on moving deleted files into .deleted folder. Gnome UI typically move deleted files into a trash folder which can potentially in another partition. This can be quite bad when you delete very large folders/files, the massive copy is dumb.

By moving deleted files into a folder in the same path, we avoid massive copy for deleting large files.

Meng Weng Wong

unread,
May 23, 2011, 1:53:17 AM5/23/11
to singap...@googlegroups.com, Meng Weng Wong
On May 23, 2011, at 1:32 PM, xman wrote:

By moving deleted files into a folder in the same path, we avoid massive copy for deleting large files.


in the same filesystem, perhaps.  it'd be nice for rmdir to be able to work.  why not maintain a shadow filesystem under /.Trash/, effectively journaling as you go?  instead of copy-on-write, it'd be mv-on-rm.


Patrick Haller

unread,
May 23, 2011, 1:59:24 AM5/23/11
to singap...@googlegroups.com
On Mon, May 23, 2011 at 01:14:33PM +0800, Matthew Rudy Jacobs wrote:
> for what reason would you do it?
>
> * version control
> * backup

>
> It seems massive overkill to me

I subversion'd my homedir a couple years ago, then migrated to git.

http://haller.ws/logs/view.cgi/SubversionHomeDir/

The biggest gain is non-intuitive. Normally, we treat config files as
detritus, and when we move to a new machine, we reconfig ourselves to
match the new setup.

By putting dotfiles in a repo, our developer brains immediately view
them as maintained files. We then improve them, and this helps us learn
our tools as we customize them to fit how we work.

You end up with a better machine-human interface in addition to the file
distribution / backup / versioning that comes with a VCS.


Patrick

Patrick Haller

unread,
May 23, 2011, 2:02:13 AM5/23/11
to singap...@googlegroups.com, Meng Weng Wong
override rm ;)

rm() {
local secs=$( system.time.epoch )
local archive="${RM_ARCHIVE}/${secs}"
[[ ! -d ${archive} ]] && mkdir -p "${archive}"
[[ ! -d ${archive} ]] && { echo "rm: unable to mkdir ${archive}" ; return 1; }
for i in "$@"; do
[[ -S "$i" ]] && command rm "$i"
[[ -e "$i" ]] && command mv "$i" ${archive}/.
done
}

xman

unread,
May 23, 2011, 2:03:16 AM5/23/11
to singap...@googlegroups.com, Meng Weng Wong
in the same filesystem, perhaps.  it'd be nice for rmdir to be able to work.  why not maintain a shadow filesystem under /.Trash/, effectively journaling as you go?  instead of copy-on-write, it'd be mv-on-rm.

Not really sure how to configure that to work. Effectively if a 'rm' command works as mv-on-rm on the same file system, that'll be great. And there are potentially many partitions or file systems in the system. Working out of the box without system configurations would be good too.

xman

unread,
May 23, 2011, 2:25:52 AM5/23/11
to singap...@googlegroups.com, Meng Weng Wong

rm() {
local secs=$( system.time.epoch )
local archive="${RM_ARCHIVE}/${secs}"
[[ ! -d ${archive} ]] && mkdir -p "${archive}"
[[ ! -d ${archive} ]] && { echo "rm: unable to mkdir ${archive}" ; return 1; }
for i in "$@"; do
[[ -S "$i" ]] && command rm "$i"
[[ -e "$i" ]] && command mv "$i" ${archive}/.
done
}

Wow! It'll create tones of directory in the archive with different time :D
If the RM_ARCHIVE is in another file system, it'll copy large files across on delete :p 

Patrick Haller

unread,
May 23, 2011, 2:41:26 AM5/23/11
to singap...@googlegroups.com, Meng Weng Wong
On Sun, May 22, 2011 at 11:25:52PM -0700, xman wrote:
> If the RM_ARCHIVE is in another file system, it'll copy large files
> across on delete :p

then background the mv in the function ;)

xman

unread,
May 23, 2011, 2:52:59 AM5/23/11
to singap...@googlegroups.com, Meng Weng Wong

then background the mv in the function ;)


But I wouldn't really want that mv :p It still take up a lot of disk activity :p
So I did a work around by creating a hidden folder .deleted in the same path, and move deleted files into it :p 

Da Cunha Daniel

unread,
May 23, 2011, 3:51:17 AM5/23/11
to singap...@googlegroups.com
I just find that a 2sec pause before a rm and a Crashplan subscription save me from all that trouble :)

Cheers,
Dan

Sent from my iPhone
--

xman

unread,
May 23, 2011, 4:01:53 AM5/23/11
to singap...@googlegroups.com
I just find that a 2sec pause before a rm and a Crashplan subscription save me from all that trouble :)

That's not a bad idea. A few seconds pause does save me from sending an email to a wrong person :) 

Matthew Rudy Jacobs

unread,
May 23, 2011, 4:03:31 AM5/23/11
to singap...@googlegroups.com
maybe you can implement the same functionality as gmail goggles.

if you want to delete a file
you need to answer a series of arithmetic questions.

On 23 May 2011 16:01, xman <cshi...@gmail.com> wrote:
I just find that a 2sec pause before a rm and a Crashplan subscription save me from all that trouble :)

That's not a bad idea. A few seconds pause does save me from sending an email to a wrong person :) 

--

xman

unread,
May 23, 2011, 4:13:00 AM5/23/11
to singap...@googlegroups.com
maybe you can implement the same functionality as gmail goggles.

if you want to delete a file
you need to answer a series of arithmetic questions.

That'll make me retarded very quickly :p Hackers don't like being asked for this and that. But hackers like to have recovery methods too when things go wrong. 

xman

unread,
May 23, 2011, 12:27:26 PM5/23/11
to singap...@googlegroups.com, Meng Weng Wong
override rm ;)

rm() {
local secs=$( system.time.epoch )
local archive="${RM_ARCHIVE}/${secs}"
[[ ! -d ${archive} ]] && mkdir -p "${archive}"
[[ ! -d ${archive} ]] && { echo "rm: unable to mkdir ${archive}" ; return 1; }
for i in "$@"; do
[[ -S "$i" ]] && command rm "$i"
[[ -e "$i" ]] && command mv "$i" ${archive}/.
done
}

Thanks for showing this, so I know I didn't handle the socket files. :) 

Vikram Verma

unread,
May 23, 2011, 3:10:22 PM5/23/11
to singap...@googlegroups.com
On 11-05-23 11:30:52 +0800, Jason Ong wrote:
> Hi guys,
>
> Just wanna share with y'all good hackers that we [Patrick, Ivan and myself]
> are organizing the first Terminology meet up at HackerspaceSG on the 25th
> May 2011, Wednesday. 7:30pm.
>
> http://terminology.pen.io/
>
> Come join the fun! :)
>
> ====
>
> *What is Terminology?*

>
> It's a meet up for all things terminal! Show off your console foo, share
> config files, do crazy things on the monospace that we all love so dearly!
>
> *When & where is it going to be held?*

>
> We're aiming for a monthly meet up starting this 25th May at HackerspaceSG,
> 70A Bussorah Street, 7:30pm
>
> *Do I have to sign up?*

>
> Nope. As with all things terminal, it should be free! Come join the fun!
>
> *I have something to share. Who should I speak to?*

>
> If you have something burning to share, email Jason [velvetpd gmail]. We
> welcome impromptu quick lightning talks too. :)
>
> --
> Cheers,
> JasonOng
>
> ---
> web: http://bit.ly/jasonong
>
> --
> You received this message because you are subscribed to the Google Groups "Singapore Ruby Brigade" group.
> To post to this group, send email to singap...@googlegroups.com.
> To unsubscribe from this group, send email to singapore-rb...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/singapore-rb?hl=en.

Hooray!

Meng Weng Wong

unread,
May 25, 2011, 9:59:15 AM5/25/11
to singap...@googlegroups.com
lol.  and then there's



Matthew Rudy Jacobs

unread,
May 25, 2011, 11:44:54 PM5/25/11
to singap...@googlegroups.com
am I missing something.

all the articles written about it, say the source is on github
but

there's just a .ignore
and a blank README.

On 25 May 2011 21:59, Meng Weng Wong <meng...@gmail.com> wrote:
lol.  and then there's



Jason Ong

unread,
May 26, 2011, 12:19:28 AM5/26/11
to singap...@googlegroups.com
Hi guys,

Here's the show notes from yesterday's #terminology meet up.


Btw there's a google group for pre and post discussions. Let's see if it sticks.

Tamas Herman

unread,
May 26, 2011, 1:53:38 PM5/26/11
to hacker...@googlegroups.com, Martin Bähr, Jason Ong, Meng Weng Wong, beerm...@googlegroups.com, singap...@googlegroups.com
hey guys,

patrick,

if u remember we put the magic-space into my inputrc.
but unconditionally!
as a result, i couldn't type space in my mongodb shell,
for 2 months! :)

now, i saw in ur inputrc, what is the way to go about it:

$if Bash
Space: magic-space
...

so, thx!

ivan,

im completely agree that ppl today should still look back at
engelbart's work!
while im saying that, i've just realized that even myself haven't
watched the full demo yet... just half of it... :)

sharing a more direct link to the videos might raise the chance
of ppl actually watching it, i think:

http://sloan.stanford.edu/MouseSite/1968Demo.html

roland,

where can we see your ssh_config?

martin,

thx for pointing out fish.
just read the wikipedia page, but i was happy to see there are
efforts to clean up the shortcomings of sh.


jason, keep on going.
u r great at organizing communities!

--
tom

Reply all
Reply to author
Forward
0 new messages