Zipping all files in a Git repository

Hello,

This is a quick / reference post illustrating how to archive (zip format) all the files in a branch in a Git repository.

From the command prompt, type:

 
git archive --format=zip -o files.zip master

Explanation:

  1. The “–format” argument lets you specify the archive type. I used the zip file format
  2. The “-o” argument lets you specify the output file name
  3. master” is the name of the branch to be archived.

 

flower separator
batchography-good-resDo you want to master Batch Files programming? Look no further, the Batchography is the right book for you.

Available in print or e-book editions from Amazon.
flower separatorYou might also like:

 

Online Chatting and The 4 Magic Questions

Back in the days, when I was learning pickup techniques from pickup artists, I ran into “The Magic Questions pattern” by Jack Ellis (the author of “Forbidden Patterns”). The purpose of these questions is to have a nice and fun topic to talk to women whom you just approached in a public setting. Women like it when men talk about them, compliment them or do anything thing that make them feel special.

The Magic Questions

Here are the magic questions, ask them in any order:

  1. Visualize yourself in a white room. You’re in a bed and everything is white. How do you feel?
  2. What is your favorite animal? What qualities do you see it as having?
  3. What is your favorite color? How does it make you feel when you think about it?
  4. Imagine yourself on a beach. Nobody is around and the ocean is right in front of you. What do you do?

Take mental note of the answers because you will have to interpret the answers back to them.

What the answers mean

After you finish asking the questions and taking notes, it is time to interpret the answers back to the interviewee. The meaning of each question is as follows:

  1. This is how they view death and dying
  2. This is how their friends view them
  3. This is how they view themselves
  4. This is how they view sex

Putting it into practice

Let me give you an example. You meet a random girl that you want to approach and talk to. You can use the four magic questions as a nice conversation opener: Continue reading

MacBook keyboard keys

In this blog post, I am going to share with you how to get the lacking keyboard keys on a MacBook’s keyboard.

Essentially, you are missing the following keys:

  • HOME / END.
  • DEL key. This is different from the MacBook’s “Delete” key (which is equivalent to the “Backspace” key).
  • Page Up / Page Down.

Continue reading

7 simple methods to achieve success in life

Source: http://www.jamesaltucher.com/2016/03/started-bottom-now-im/
Tips for success
  1. Study hard when you’re young
  2. Work hard when you’re older
  3. Never shy away from making connections
  4. Leverage your network for opportunities
  5. Life 10% below your means -> save 10% of your income
  6. Don’t foster any addictions (alcohol, cigarettes, drugs, gambling)
  7. Don’t fall for scams

Those really are “proven steps”!

flower separatorYou might also like:

The stereogram experience

I first learned about stereograms in 2001. Back then, the term was new to me and I had no idea that it was possible to see 3D shapes on a 2D screen with the naked eyes.

What are stereograms you ask?

A diagram or computer-generated image giving a three-dimensional representation of a solid object or surface

Wikipedia, as usual, has a nice article explaining stereograms.

After a long week of trying hard, researching and learning various techniques, I managed to see my first stereogram:

snowman-softsource
3D snowman

Continue reading

How to turn your bookshelf into an e-book library: Digitizing all of your books

digitizing-books-scannedSince I moved to the US, I collected around 350 books. I love books and the thought of giving them up is not a pleasant thought.

Each time I used to move from an apartment to another, the majority of boxes would be packed with books. Each time I travel somewhere for a long period, I miss being able to grab a book from my bookshelf and start reading (most of my books are old and they do no exist in digital format anyway). It is clear that I have attachment to those books.

To break this attachment, I had to make a couple of decisions. The first was whether to just forget about the books, leave them on the shelves and get myself busy with another chore. The other decision was whether to scan and /or give away the books. With that came other questions like how to scan books and convert them to eBooks, what methods to use, how much efforts would it take to convert the books, etc.

I decided to get rid of the books and the trim down on the space they occupy. For the reasons outlined later in this blog post, I chose to destructively scan my books. By scanning the books, I get a digital and searchable copy of my books (in PDF format).

In this blog post, I will share with you different ways you can use to digitize books and then the remainder of this blog post will illustrate how I destructively digitized all of my books and what tools I used. Continue reading