Skip to content

Instantly share code, notes, and snippets.

View blmarket's full-sized avatar

Jeong, Heon blmarket

  • Undisclosed company name
  • Vancouver BC, Canada
View GitHub Profile
#!/bin/bash -e
####
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files
#include <memory>
#include <iostream>
using namespace std;
typedef function<void(int)> func;
shared_ptr<func> create_lambda() {
return make_shared<func>([]() {
int tmp;