Skip to content

Instantly share code, notes, and snippets.

@geniys
geniys / private_fork.md
Created July 18, 2024 23:09 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@geniys
geniys / git
Created December 18, 2018 11:49
# remove all merged branch except (master, develop and *)
git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d
@geniys
geniys / use_boost_at_android.md
Last active April 25, 2017 00:14
Use boost at Android
@geniys
geniys / SerialPort.cpp
Created November 23, 2016 05:44 — forked from yoggy/SerialPort.cpp
SerialPort class sample using boost::asio::serial_port
#include "StdAfx.h"
#include <Setupapi.h>
#pragma comment(lib, "Setupapi.lib")
#include "SerialPort.h"
SerialPort::SerialPort(void) : end_of_line_char_('\n')
{
}

Link

C++ FAQ

Catch exception from constructor initializer list

// foo.h
class Foo {
public:
  Foo();
private;
@geniys
geniys / google_breakpad.md
Last active March 17, 2016 23:46
Break down Google breakpad

Google breakpad

Install

# install build tools
$ sudo apt-get install build-essential
# optional (compile with -m32)
$ sudo apt-get install gcc-multilib g++-multilib 
# get a copy of depot_tools
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git