Skip to content

Instantly share code, notes, and snippets.

@rfulwell
rfulwell / private_fork.md
Created October 24, 2024 23:47 — 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

@rfulwell
rfulwell / output.txt
Created April 23, 2019 23:25
PHP interpreter output from `debug_backtrace()`
#BP:debug_print_backtrace() running in [/var/www/html/a.php:36]
#0 a_class::a_function(1) called at [/var/www/html/b.php:24]
#1 b_class::b_function(1, two) called at [/var/www/html/c.php:9]
#2 c_class::c_function(param) called at [/var/www/html/c.php:13]
Array
(
[0] => Array
(
[file] => /var/www/html/b.php
@rfulwell
rfulwell / docker.sh
Last active April 19, 2019 22:11
A one-line Docker command used to fire up Apache/PHP
docker run -it --rm -p 8080:80 -v "/host_mnt/d/tmp/html:/var/www/html" nimmis/apache-php5
@rfulwell
rfulwell / a.php
Created April 19, 2019 19:06
A test file for use in comparing the behavior or `debug_backtrace` with a traditional debugger call stack.
@rfulwell
rfulwell / b.php
Created April 19, 2019 19:05
A test file for use in comparing the behavior or `debug_backtrace` with a traditional debugger call stack.
@rfulwell
rfulwell / c.php
Created April 19, 2019 19:04
A test file for use in comparing the behavior or `debug_backtrace` with a traditional debugger call stack.
<?php
// filename: c.php
include_once 'b.php';
class c_class
{
static function c_function($str)
{
b_class::b_function(1, 'two');
}