Categories
Tech

Remove Directory from Git Repository

I recently started working with the integrated Version Control System (VCS) features of PyCharm and accidentally pushed my IDE / PyCharm project settings to my Google Code hosted Git repository. Basically, all of the files in the .idea folder of my project were pushed to the repository. While these files didn’t necessarily contain any proprietary or confidential information, I didn’t want them cluttering up my project repository. And while I could have simply removed the files and performed a commit, these files would have then been in the history of my repository.

I did some quick research and found a post on GitHub explaining how to remove a file along with its history from a GitHub repository. This command basically did what I needed to, but was designed to remove a single file at a time. Being that I wanted to remove a whole directory of files, I modified the command to remove the folder and recursively iterate through the directory removing children:

git filter-branch --force --index-filter \
'git rm -r --cached --ignore-unmatch .idea' \
--prune-empty --tag-name-filter cat -- --all

git push origin master --force

It should be noted that the command will overwrite existing tags and that if you had sensitive information in the files (like passwords), you should consider the information compromised and take appropriate action.

Categories
Tech

OS Install without CD-rom support

Download a Floppy Disk boot creator:

Choose your flavor of bootdisk

 

Windows 98 Boot Disk

Windows 98 SE Boot Disk

Windows XP Boot Disk

DOS 6.22 Boot Disk

 

  1. Copy the i386 directory from your installation CD to the hard-drive of the computer you will be installing the Operating System on.
  2. Download and run a boot-disk creator from above. Make sure you have a clean floppy, it will be needed for this.
  3. Reboot the computer with the floppy in it.
  4. Run WINNT once you have accessed the i386 folder. (ie. navigate to C:\i386\ using the "CD" command then run WINNT)
  5. Follow the installation process.

– OR –

  1. Copy the i386 directory to your hard-drive or specify the shared network path as the sourcepath (with the [/s:sourcepath] trigger)
  2. Run the command line utility [command or CMD from the Run line]
  3. Navigate to the location of the i386 folder using the CD command (ie. "C:\> cd c:\i386")
  4. Run the command: WINNT32
  5. Follow the installation process
Categories
Josh Lyon

flamingcube – back online

Our sister site, flamingcube.com, has finally been restored. The data was lost during a transition from one host to another and the most recent backup was corrupt.

An old home-directory backup was found, allowing us to save most of the files. However, a recent database backup could not be recovered. The site had not seen many updates (to the DB) recently, so it wasn't that big of an issue. An older copy of the database was found and flamingcube was restored to it's normal self.

The forums have been locked down due to a recent outbreak in phpBB script attacks to the version currently being used on the site. flamingcube.com will now serve as a reference version of the old site.

Check out the site: http://www.flamingcube.com

—edit——————-
I really need to update the site to the new phpBB forums, as a new hack has been released for the version I have on the site. I think I may just take the site offline temporarily and forward the URL to this site.