Skip to content

Instantly share code, notes, and snippets.

View atimin's full-sized avatar
🎯
Focusing

Alexey Timin atimin

🎯
Focusing
View GitHub Profile
@sim642
sim642 / boost-windows.md
Last active May 14, 2024 18:30
Installing boost libraries for GCC (MinGW) on Windows

Installing boost libraries for GCC (MinGW) on Windows

Folder setup

  1. Extract downloaded boost source, e.g. C:\Program Files\boost_1_59_0.
  2. Create a folder for Boost.Build installation, e.g. C:\Program Files\boost-build.
  3. Create a folder within for building, i.e. C:\Program Files\boost_1_59_0\build.
  4. Create a folder for installation, e.g. C:\Program Files\boost.

GCC setup

  1. Open Command Prompt.
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@mislav
mislav / index.haml
Created March 21, 2011 15:00
How to render Haml, Erb templates with a layout
%h1&= title
%p Hello world
#!/usr/bin/env ruby
require 'slop'
opts = Slop.parse do
banner "Usage: ruby foo.rb [options]\n"
on :n, :name, 'Your username', true
on :a, :age, 'Your age (optional)', :optional => true
on :V, :verbose, 'Run in verbose mode', :default => false