git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Utils.extend(feed, { | |
title: 'google++', | |
author: { | |
name: 'satyr', email: 'murky.satyr\x40gmail.com', | |
homepage: 'http://satyr.github.com', | |
}, | |
license: 'X', | |
}) | |
const | |
Google = 'https://www.google.com/', |
#!/usr/bin/env sh | |
# subgit | |
# | |
# A tiny wrapper around git to help you manage | |
# Git sub-projects easily, safely, and simply. | |
# | |
# Created by Rusty Klophaus (@rklophaus) | |
# | |
# See http://rklophaus.com/subgit for usage. |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index eb0f7f3..80c4c37 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -6,18 +6,6 @@ endif(COMMAND cmake_policy) | |
# allow empty else and endif constructs (available by default since 2.6.0) | |
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) | |
-# prevent in-source builds | |
-IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) |
class Linux_0_01 | |
{ | |
int restart_syscall(); //0 | |
int exit(); //1 | |
int fork(); //2 | |
int read(); //3 | |
int write(); //4 | |
int open(); //5 | |
int close(); //6 | |
int waitpid(); //7 |
#!/bin/bash | |
# Created by Mikhail Bautin on 09/30/2011. | |
# | |
# Copyright (c) 2011 Facebook Inc. | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: |
#include <stdio.h> | |
#include <dlfcn.h> | |
#include <avcall.h> | |
int main(int argc, char *argv[]) { | |
int ret; | |
av_alist alist; | |
void *dlh; | |
void *fp; | |
diff --git a/src/emu/device.h b/src/emu/device.h | |
index df101d9..a20d341 100644 | |
--- a/src/emu/device.h | |
+++ b/src/emu/device.h | |
@@ -377,9 +377,10 @@ protected: | |
virtual ~shared_ptr_finder() { if (m_allocated) global_free(m_target); } | |
// operators to make use transparent | |
- operator _PointerType *() { return m_target; } | |
operator _PointerType *() const { return m_target; } |
sudo aptitude install build-essential automake cmake patch git-core php5-cli php5-dev libpcre3-dev -y | |
git clone https://github.com/libgit2/libgit2.git | |
cd libgit2 | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
sudo cmake --build . --target install | |
cd ../../ |
// converts 32-bits positive integer to 4-bytes little endian | |
void to4li(unsigned long int const value, char * const buffer) | |
{ | |
buffer[0] = value >> 8 * 0; | |
buffer[1] = value >> 8 * 1; | |
buffer[2] = value >> 8 * 2; | |
buffer[3] = value >> 8 * 3; | |
} | |
// converts 16-bits positive integer to 2-bytes little endian |