Skip to content

Instantly share code, notes, and snippets.

View german-bortoli's full-sized avatar
🏠
Working from home

German Bortoli german-bortoli

🏠
Working from home
View GitHub Profile
@german-bortoli
german-bortoli / .gitconfig
Created November 10, 2011 03:14
Este gitconfig se encuentra en /home/USUARIO/.gitconfig
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@german-bortoli
german-bortoli / German
Created August 23, 2012 13:06
Elgg Multisite
Primer paso:
Nos bajamos el source de https://github.com/mapkyca/Elgg-Multisite para dar soporte de multisite
Nos bajamos la ultima version estable de elgg y la copiamos en la carpeta elgg del multisite.
Corremos:
* ant test - builds and installs into
<?php
function zip_folder($source, $destination) {
if (!extension_loaded('zip') || !file_exists($source)) {
return false;
}
$zip = new ZipArchive();
if (!$zip->open($destination, ZIPARCHIVE::CREATE)) {
return false;
@german-bortoli
german-bortoli / svn_upgrade.sh
Created January 9, 2013 16:47
Use svn upgrade to update old metadata versions package to new subversion releases. This script execute this command, for every project that you have in a folder. for example /home/my_user/projects/
find . -maxdepth 1 -type d -exec svn upgrade {} \;
@german-bortoli
german-bortoli / install_package.md
Last active December 15, 2015 05:59
Sublime text 3 shortkeys

Sublime Text 3

##How to install Package Control

There is an alpha quality release of Package Control for Sublime Text 3 available. Please note that it currently functions the same as for ST2, however there will be changes in the future to properly support the new preferred method of keeping .sublime-package files on disk instead of extracting them to the Packages/ folder.

Please use GitHub issues and prefix all bug titles with ST3: .

Git Install (MAC ONLY)

@german-bortoli
german-bortoli / extra.js
Created March 25, 2016 15:10
Grafana auto login
$( document ).ready(function() {
/**
* Cookies management library
*
* @type type
*/
var helperCookie = {
findAll: function () {
var cookies = {};
@german-bortoli
german-bortoli / kylo-services3.log
Created October 25, 2017 00:55
Kylo service log showing why is not getting tables on data feed creation
2017-10-25 00:52:13 INFO http-nio-8420-exec-10:NifiIntegrationRestController:383 - Query for Table Names against service: Redshift (using postgres)(4fac6bb6-015f-1000-e6e3-f01f5682a0f2)
2017-10-25 00:52:13 INFO http-nio-8420-exec-10:DBCPConnectionPoolService:271 - Returned user defined datasource for Redshift (using postgres) service and user root
2017-10-25 00:52:13 INFO http-nio-8420-exec-10:DBCPConnectionPoolService:239 - Search For Tables against Controller Service: Redshift (using postgres) (4fac6bb6-015f-1000-e6e3-f01f5682a0f2) with uri of jdbc:postgresql://myredshiftdatabase.ate7si8l3vzd.us-west-2.redshift.amazonaws.com:5439/feeds.
2017-10-25 00:52:14 WARN http-nio-8420-exec-10:PgConnection:198 - Unsupported Server Version: 8.0.2
2017-10-25 00:52:14 WARN http-nio-8420-exec-10:PgConnection:198 - Unsupported Server Version: 8.0.2
2017-10-25 00:52:14 WARN http-nio-8420-exec-10:PgConnection:198 - Unsupported Server Version: 8.0.2
2017-10-25 00:52:14 WARN http-nio-8420-exec-10:PgConnection:198 - Unsu
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Cannot access central (http://repo1.maven.org/maven2) in offline mode and the artifact org.modeshape.bom:modeshape-bom-embedded:pom:5.4.1.Final has not been downloaded from it before. @ line 275, column 19
[ERROR] Non-resolvable import POM: Cannot access central (http://repo1.maven.org/maven2) in offline mode and the artifact org.springframework.cloud:spring-cloud-dependencies:pom:Edgware.SR3 has not been downloaded from it before. @ line 283, column 19
[ERROR] Non-resolvable import POM: Cannot access central (http://repo1.maven.org/maven2) in offline mode and the artifact org.glassfish.jersey:jersey-bom:pom:2.22.2 has not been downloaded from it before. @ line 329, column 19
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.thinkbiganalytics.kylo:kylo:0.10.0.1-SNAPSHOT (/Users/demo.user/Projects/test-kylo/pom.xml) has 3 errors
[
@german-bortoli
german-bortoli / SnackBarContext.tsx
Created May 19, 2022 12:13 — forked from akinncar/SnackBarContext.tsx
SnackBar Material UI Context Typescript Boilerplate
import { Snackbar } from '@material-ui/core';
import { Alert, Color } from '@material-ui/lab';
import React, { createContext, useContext } from 'react';
type SnackBarContextActions = {
showSnackBar: (text: string, typeColor: Color) => void;
};
const SnackBarContext = createContext({} as SnackBarContextActions);