chronx Find something you love to do and you'll never have to work another day for the rest of your life

8Feb/120

dos2unix

Posted by oxchronxo

it's been awhile since needing this and when I went to install it was gone. wtf

not really, it just changed a bit
install is easy
$ sudo aptitude install tofrodos
to convert from DOS to UNIX
$ fromdos FILE
to convert from UNIX to DOS
$ todos FILE

3Feb/120

disable “application downloaded from the internet”

Posted by oxchronxo

for a specific location:
$ xattr -d -r com.apple.quarantine ~/Downloads
for a specific location:
$ xattr -d -r com.apple.quarantine /Path/to/application/
globally:
$ defaults write com.apple.LaunchServices LSQuarantine -bool NO
$ killall -9 Finder

Tagged as: , , No Comments
13Jan/120

paste buffer into file using cat

Posted by oxchronxo

1) first issue the following command
$ cat > FILENAME
2) type whatever you want
-- or --
2) paste in a buffer then press ENTER to write the pasted buffer to the file
3) to complete the operation issue a CTRL+D to return to the console