Skip to content

Instantly share code, notes, and snippets.

View bastiao's full-sized avatar

Luís Bastião Silva bastiao

View GitHub Profile
@bastiao
bastiao / rack-ovh3-sgb3-recover.js
Last active March 21, 2021 11:17
OVH Racks SGB3
const http = require('http');
var fs = require('fs');
/*********
Random script created to see restart process of OVH Strasburg fire 10.03.2021.
node .\rack_sgb3.js S341 B06
[ 'S341', 'B06' ] is offline
Online Racks: 138
Offline Racks: 493
@bastiao
bastiao / 1_kubernetes_on_macOS.md
Created September 7, 2020 22:32 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@bastiao
bastiao / .bash_profile
Last active January 25, 2017 13:41 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
def absolute_uri(url=None):
if not url:
return settings.SENTRY_URL_PREFIX
script_name = get_script_prefix().rstrip('/')
l = len(script_name)
if l:
prefix = settings.SENTRY_URL_PREFIX[:0 - l]
else:
prefix = settings.SENTRY_URL_PREFIX
COEUS][API][ConfigActionBean] Saved: /var/lib/tomcat7/webapps/coeus/WEB-INF/classes/config.js
[COEUS][Config] Configuration loaded
[COEUS][API][ConfigActionBean] Reading: http://purl.org/dc/elements/1.1/
[COEUS][API][ConfigActionBean] Reading: http://www.w3.org/2000/01/rdf-schema#
[COEUS][API][ConfigActionBean] Reading: http://www.w3.org/ns/prov
[COEUS][API][ConfigActionBean] Reading: http://www.w3.org/2006/12/owl2-xml#
ERROR [http-bio-8080-exec-2] (RDFDefaultErrorHandler.java:40) - http://www.w3.org/2006/12/owl2-xml#(line 3 column 25): {E202} Expecting XML start or end element(s). String data "OWL 2 Namespace" not allowed. Maybe there should be an rdf:parseType='Literal' for embedding mixed XML content in RDF. Maybe a striping error.
ERROR [http-bio-8080-exec-2] (RDFDefaultErrorHandler.java:40) - http://www.w3.org/2006/12/owl2-xml#(line 7 column 23): {E202} Expecting XML start or end element(s). String data "The namespace name " not allowed. Maybe there should be an rdf:parseType='Literal' for embedding mixe
Process: iPhone Configuration Utility [83198]
Path: /Applications/Utilities/iPhone Configuration Utility.app/Contents/MacOS/iPhone Configuration Utility
Identifier: com.apple.iPhoneConfigurationUtility
Version: 3.5 (289)
Build Info: MobileConfigUtility-289000000000000~1
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: iPhone Configuration Utility [83198]
User ID: 501
#!/bin/sh -e
# Edit the following to change the name of the database user that will be created:
APP_DB_USER=emif_dev
APP_DB_PASS=emif_dev
# Edit the following to change the name of the database that is created (defaults to the user name)
APP_DB_NAME=$APP_DB_USER
# Edit the following to change the version of PostgreSQL that is installed
{"questions": [{"category": "9c97e9bd3a27f9df733294531477e3e82cbe80a5", "choices": [{"choice_id": "e608a4bdf8dd113de4176d11ae4771da", "correct": false, "choice": "QPR"}, {"choice_id": "94b93c65b81468394081ed644c99b609", "correct": false, "choice": "Benfica"}, {"choice_id": "8d81f0252e2ac0ba8f275d9b4e405046", "correct": false, "choice": "Webb"}, {"choice_id": "9292a06d974e72ee606945e2ee645f9b", "correct": false, "choice": "Hibernian"}], "question": "VIDEO: _________ win is fantastic - Redknapp", "question_id": "a5a527fc80d97b8f9eceeb29db0832d1"}, {"category": "9c97e9bd3a27f9df733294531477e3e82cbe80a5", "choices": [{"choice_id": "876e28033f17f7f7db5843aff2b30beb", "correct": false, "choice": "Hurst"}, {"choice_id": "1b4df1ff0ef113857166d30e1705e1d6", "correct": false, "choice": "Rotherham United"}, {"choice_id": "8aa4756589b4fe60c9f8b8d62108d649", "correct": false, "choice": "Webb"}, {"choice_id": "ee61abbb7ba2e8b262cacc75d0486f4f", "correct": false, "choice": "Simeone"}], "question": "VIDEO: World Cup moments:
{"questions": [{"category": "9c97e9bd3a27f9df733294531477e3e82cbe80a5", "choices": [{"choice_id": "e608a4bdf8dd113de4176d11ae4771da", "correct": false, "choice": "QPR"}, {"choice_id": "94b93c65b81468394081ed644c99b609", "correct": false, "choice": "Benfica"}, {"choice_id": "8d81f0252e2ac0ba8f275d9b4e405046", "correct": false, "choice": "Webb"}, {"choice_id": "9292a06d974e72ee606945e2ee645f9b", "correct": false, "choice": "Hibernian"}], "question": "VIDEO: _________ win is fantastic - Redknapp", "question_id": "a5a527fc80d97b8f9eceeb29db0832d1"}, {"category": "9c97e9bd3a27f9df733294531477e3e82cbe80a5", "choices": [{"choice_id": "876e28033f17f7f7db5843aff2b30beb", "correct": false, "choice": "Hurst"}, {"choice_id": "1b4df1ff0ef113857166d30e1705e1d6", "correct": false, "choice": "Rotherham United"}, {"choice_id": "8aa4756589b4fe60c9f8b8d62108d649", "correct": false, "choice": "Webb"}, {"choice_id": "ee61abbb7ba2e8b262cacc75d0486f4f", "correct": false, "choice": "Simeone"}], "question": "VIDEO: World Cup moments: