Currently Viewing Posts Tagged clean

Untrack files already added to git repository based on .gitignore

There is some files added to your git repository before you created .gitignore file. So they are already in the repos. Even you input the file name into .gitignore.  It is still there. Every time you change this file. It will be tere.

How to remove it?

Step 1: Commit all your changes.

It is the first step. Check your git status and commit all your changes. Including the .gitignore file.

Step 2: Remove everything from the repository

It is clean up. Enter following command:

git rm -r --cached .
  • rm is the remove command
  • -r  is an option to allow recursive removal
  • -cached will only remove files from the index. Your files will still be there, untouched.
  • The . indicates that all files will be untracked.

Step 3: Add everthing now

git add .

Step 4: Commit

git commit -m ".gitignore fix"

Step 5: Push

git push 

Then. Your repository is as clean as you expect.

Day 10 to Day 14 – Two Week Campaign

It is later to post the updates of the optimization campaign.
The works I did in these days is very important and very basic. It is boring and time-consuming. There is no shortcut.

I spend hours to check the broken links on my site here.
Based on the program which is follow the href links in html files, over 400 broken links found. There are different situations.

  • Sites are shutdown. Links to them are removed.
  • Domain name of site is changed, 301 redirect implemented. Links to them are updated.
  • Structures of sites are changed, content is moved to other URL. Links to them are updated.

Continue reading “Day 10 to Day 14 – Two Week Campaign”

Day 4 and Day 5 – Two Week Campaign

Weekend, it is time for rest, but I am still keep my two week campaign moving on.
Remove some old code from monthly archives. These code make the page shown very slow.
Follow twelve people on twitter each day.
Make a new kind archive template. It generate the last 10 post each category. Then I can pick one or two categories and shown them on home page. Right now I add Hardware, Software and Internet on home page. These three are most active categories.

Continue reading “Day 4 and Day 5 – Two Week Campaign”

It is time to Clean the Vent and replace the filters

It is colder and colder. It is autumn now. Indoor temperature is about 20 degree. So be prepared for the winter and clean the vent.
First, I made an appointment with Furnace Service company.
The service including cleaning Vent, up to 10. They use vacuum with hose to clean the dust inside of the caliduct.
They also cleaned the fan and inspected motor.
The total cost is about 100 dollars. If you order in summer, it will be 70 dollars.

Continue reading “It is time to Clean the Vent and replace the filters”

Clean the fan of Acer Aspire One

I used Acer Aspire One very often these days. Just feel the fan is too noisy. I think it is time to clean it now.
But, it is not a PC. It is a Netbook. Very compact. How to disassemble it?
I googled it and found a very good guide here.
I follow the steps and disassembled it and took the fan off. Clean the fan and installed it again.
Everything is fine, except the SSD is not found by Bios. I have to redo it to make sure the cable of SSD is perfectly installed.
Now it is very quiet when the system is on.

Tips to clean Pontiac Remote Control

I wrote the post about how to replace the battery of Pontiac Remote.
Here are pictures of them and my own tips to clean it.
Picture one.
pontiac-remote-open

If you can see the red circle part, it is a small gap. This is the place to insert thin flat-head screwdriver.
Picture two.
pontiac-remote-opened

When opened the car remote, it is clear to see the battery.

Continue reading “Tips to clean Pontiac Remote Control”

Logitech EX110 Mouse problem

I have a set of Logitech EX110 keyboard & mouse set at home. I used it about 20 months.
From last month, I have a problem with the mouse.
When I make a single click on the left button, it works like double click. Not always, but very often. And also it happens randomly.
So I have nothing to do with it. I find a wired mouse to replace it.
Later I read a post has similar situation in Chinese.
OK. I have a small screw driver and sewing needle.
I open the mouse with screw driver.

Mouse_9

Open the cap of the micro switch with sewing needle.
Clean the contact points by a copier paper. Cut a small piece of paper, fold it and put it in between of the points. Just rub couple times.
Assemble it and it works.

  • Archives