Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Hacking on Compiler Explorer (when I can)

Matt Godbolt mattgodbolt

💭
Hacking on Compiler Explorer (when I can)
View GitHub Profile
@preshing
preshing / build_cross_gcc
Last active Sep 11, 2020
A shell script to download packages for, configure, build and install a GCC cross-compiler.
View build_cross_gcc
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
@jdoconnor
jdoconnor / gist:32ef0314cecb80157c4e
Created Sep 26, 2014
Update mtimes based off commit time
View gist:32ef0314cecb80157c4e
#!/bin/bash -e
####
# based on https://gist.github.com/jeffery/1115504
# 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
You can’t perform that action at this time.