This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# to set the title of the current terminal. (tested on OSX, but should work on linux terminal too) | |
# | |
echo -e "\033]0;This is my title\a" | |
# | |
# To get the title (OSX) | |
# | |
title=`osascript -e 'tell application "Terminal" to get name of front window'` | |
echo $title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import csv | |
import msal | |
import os | |
""" | |
Script to save into a file csv file the name of the groups of Active Directory | |
It requires 3 environment variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# TODO improve documentation | |
OUTPUT_DIR='build' | |
SKIP_FILES=(README.md Home.md) | |
# This script exports Markdown files into different formats (HTML, PDF, etc..) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo adding alias chromecors | |
alias chromecors='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp' | |
# | |
# Install extension in VSCode | |
# https://marketplace.visualstudio.com/items?itemName=firefox-devtools.vscode-firefox-debug | |
# | |
# Set Firefox Developer Editionto support debug mode | |
# | |
# In about:config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="Open GPX Tracker for iOS"> | |
<wpt lat="40.762468446233115" lon="-73.99090283852468"> | |
<time>2019-12-06T14:19:25Z</time> | |
<name>09:19:25</name> | |
<desc>Dec 6, 2019 at 09:19:25</desc> | |
</wpt> | |
<wpt lat="40.80559910750484" lon="-73.95810627601767"> | |
<time>2019-12-06T14:19:29Z</time> | |
<name>09:19:29</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import the tree component | |
import {Tree} from 'untree-react' | |
class MyComponent extends React.Component { | |
constructor() { | |
//initialize the Tree | |
this.state.tree = { | |
name: "Node 1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Date+timeAgo.swift | |
// OpenGpxTracker | |
// | |
// Created by merlos on 23/09/2018. | |
// | |
// Based on this discussion: https://gist.github.com/minorbug/468790060810e0d29545 | |
// | |
// If future dates are needed https://gist.github.com/jinthagerman/009c85b7bbd0a40dcbba747e89a501bf | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple script to create a PDF from a URL. | |
* Usage: | |
* $ phantomjs topdf.js | |
* | |
*/ | |
var page = require('webpage').create(); |