Skip to content

Instantly share code, notes, and snippets.

View aubort's full-sized avatar

Pascal Aubort aubort

  • Swiss Re, Ex-Google
  • Zurich
View GitHub Profile
@aubort
aubort / twitterIcon.html
Last active October 10, 2023 04:18
Replace Twitter icon with the new Twitter X icon on SAP Career Site
<script>
/*
* This script uses a workaround to replace the old Twitter logo
* with the new Twitter X logo, when it is not possible to upgrade
* the Fontawesome library on a third party platform - in this case
* SAP SuccessFactors.
*
* Author: Pascal Aubort and Google Bard :)
*/
@aubort
aubort / Code.gs
Created August 20, 2017 13:01
Custom Password and Email functions for Google Sheets
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="utf-8">
<title>Disqus for AMP</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<style>
html, body {
@aubort
aubort / disqus-amp3.html
Last active April 19, 2017 12:37
Universal Code Disqus AMP
<div id="disqus_thread"></div>
<script>
window.addEventListener('message', receiveMessage, false);
function receiveMessage(event)
{
if (event.data) {
var msg;
try {
msg = JSON.parse(event.data);
} catch (err) {
@aubort
aubort / update_workspace.sh
Last active June 4, 2020 06:57
Install and Update all dependencies on a Cloud9 workspace to build a Static website with Hugo and host on Google App Engine
#!/bin/bash
# This script will update a new workspace created on Cloud9 IDE with the latest packages.
# In order to use it, create a update_workspace.sh file in your C9 Workspace and then make it executable using the command
# `touch update_workspace.sh && chmod +x update_workspace.sh`.
# Now you can open the updata_workspace.sh file and copy/paste this full script, save and close.
# Run the command `./update_workspace.sh` to execute the script.
#
# Alternatively you can use this command to download and make this script executable from github
# wget -O update_workspace.sh https://gist.githubusercontent.com/aubort/836888f8aaeeeff75024c87e9c9199f0/raw && chmod +x update_workspace.sh