Squash <n-amount-of-last-commits>
locally for <branch>
$ git rebase -i origin/<branch>~<n-amount-of-last-commits> <branch>
and then force push to remote <branch>
git push origin +
#!/bin/bash | |
set -euo pipefail | |
######################## | |
### SCRIPT VARIABLES ### | |
######################## | |
# Name of the user to create and grant sudo privileges | |
USERNAME=sammy |
def hello(): | |
return "Hello World from Github" | |
test = hello() | |
output = [{'test-2': test}] |
Squash <n-amount-of-last-commits>
locally for <branch>
$ git rebase -i origin/<branch>~<n-amount-of-last-commits> <branch>
and then force push to remote <branch>
git push origin +
<?php | |
function addRepeatingForm($projectId=null, $eventId=null, $form=null, $customLabel=null) { | |
// Prepare parameters | |
if($projectId === null) { | |
$projectId = PROJECT_ID; | |
} | |
if($eventId === null){ |
php_pcov.dll
and php_pcov.pdb
to your PHP extensions directory, e.g. C:\bin\php\php-7.4.27-Win32-vc15-x64\ext\
php.ini
so that PCOV is loaded. Therefore add extension=pcov
:..
extension=fileinfo
extension=gd2
Example package with structure:
project
│ composer.json
│ ...
│
└───packagename
│ │ composer.json
│ │
│ └───src
First install all these prerequisites for compiling:
sudo apt install g++ libboost-all-dev autoconf libfontconfig1-dev pkg-config libjpeg-dev libopenjp2-7-dev gnome-common libglib2.0-dev gtk-doc-tools libyelp-dev yelp-tools gobject-introspection libsecret-1-dev libnautilus-extension-dev
First download the encoding files (no need to compile these) to the current working directory
wget https://poppler.freedesktop.org/poppler-data-0.4.11.tar.gz
Manual Install
Basic instructions: https://gcc.gnu.org/install/index.html
./contrib/download_prerequisites
# Clear Build Cache | |
# https://docs.docker.com/engine/reference/commandline/builder_prune/ | |
$ docker builder prune | |
# Remove Image | |
# https://docs.docker.com/engine/reference/commandline/image_rm/ | |
$ docker image rm IMAGE | |
# Run docker build with output to console | |
# https://stackoverflow.com/a/69524819/3127170 |
RewriteEngine On | |
# Rewrite Rules needed for pretty URLS for the Modules API | |
# Add trailing slash to all requests within /api directory | |
RewriteCond %{REQUEST_URI} !(/$|\.) | |
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] | |
# Route URL Query parameters to pretty URls with "endpoints" - DO NOT CHANGE THE ORDER - can break things | |
RewriteRule ^v1/$ ?NOAUTH&pid=472&type=module&prefix=em_submission_module&page=module-repo-api |