Skip to content

Instantly share code, notes, and snippets.

View josephrodriguez's full-sized avatar
🏠
Working from home

José Rodríguez josephrodriguez

🏠
Working from home
View GitHub Profile
@josephrodriguez
josephrodriguez / CsvExporter.cs
Created February 25, 2015 23:23
The CsvExporter class allows exporting data to a csv file, using generic methods and reflection.
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace Example.Export.CSV
{
@josephrodriguez
josephrodriguez / CsvWriter.cs
Created February 26, 2015 01:29
Generic CSV writer.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Example
{
public class CsvWriter<T> : IDisposable
{
@josephrodriguez
josephrodriguez / build.gradle
Last active August 29, 2015 14:16
Tasks to configure assets with Gradle and Continous Integration on Android deployments.
import org.xmlpull.v1.XmlPullParser
import org.xmlpull.v1.XmlPullParserFactory
task findAssetsFolderPath(type: FindXmlElementAttributeTask){
inputFile file("$project.name" + ".iml")
charset 'utf-8'
elementName 'option'
attributeName 'value'
filters = [ name : 'ASSETS_FOLDER_RELATIVE_PATH']
}
#region using
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
#endregion
#
# OpenSSL configuration file.
#
# Establish working directory.
dir = .
[ ca ]
@josephrodriguez
josephrodriguez / openssl.cnf
Created July 4, 2016 22:53
OpenSSL configuration file to generate Root CA and SSL Server certificate
#
# OpenSSL configuration file.
#
# Establish working directory.
dir = .
certificate = $dir/ssl-cacert.pem
private_key = $dir/ssl-cakey.pem
new_certs_dir = $dir/certificates
@josephrodriguez
josephrodriguez / openssl.cnf
Created July 5, 2016 16:12
OpenSSL configuration file for IIS certificate
#
# OpenSSL configuration file.
#
# Establish working directory.
dir = .
[ ca ]
default_ca = CA_default
@josephrodriguez
josephrodriguez / gist:1d57769ba896866791170aa78efbf860
Created December 21, 2016 16:53
DotNetCore.1.0.0-VS2015Tools.Preview2.exe detailed log
[44C4:30D4][2016-12-21T08:11:00]i001: Burn v3.10.2.2516, Windows v10.0 (Build 10240: Service Pack 0), path: C:\Users\Joshep\AppData\Local\Temp\{E5FF5539-DA94-479F-89C2-FA63A2BB6E97}\.cr\DotNetCore.1.0.0-VS2015Tools.Preview2.exe
[44C4:30D4][2016-12-21T08:11:00]i000: Initializing numeric variable 'CHECK_SETUP_BLOCKED' to value '1'
[44C4:30D4][2016-12-21T08:11:00]i000: Initializing numeric variable 'SKIP_VSU_CHECK' to value '0'
[44C4:30D4][2016-12-21T08:11:00]i000: Initializing numeric variable 'SKIP_PREPARATION' to value '0'
[44C4:30D4][2016-12-21T08:11:00]i000: Initializing string variable 'BundleNameShort' to value 'Microsoft .NET Core 1.0.0'
[44C4:30D4][2016-12-21T08:11:00]i000: Initializing string variable 'BundleNameSub' to value 'VS 2015 Tooling Preview 2'
[44C4:30D4][2016-12-21T08:11:00]i009: Command Line: '-burn.clean.room=D:\Install\DotnetCore-Offline\DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1'
[44C4:30D4][2016-12-21T08:11:00]i000: Setting string variable 'WixBundleOriginalSource' to va
@josephrodriguez
josephrodriguez / github.json
Created December 23, 2021 11:52
Example of github object used on GitHub Actions workflow
{
token: ***,
job: build,
ref: refs/tags/v0.0.1,
sha: b48297ca130432ef2063c860721c1da065dcb476,
repository: ***/learning-spring-boot,
repository_owner: ***,
repositoryUrl: git://github.com/***/learning-spring-boot.git,
run_id: 1561948049,
run_number: 188,
@josephrodriguez
josephrodriguez / docker-build.sh
Created March 18, 2022 20:23
Shell to create a Docker image from GitHub repository
$ git clone https://github.com/josephrodriguez/springboot-starterkit.git
$ cd springboot-starterkit
$ docker build -t springboot-starterkit -f ./Dockerfile .
$ docker tag springboot-starterkit josephrodriguez/springboot-starterkit:latest
$ docker login
$ docker push -a josephrodriguez/springboot-starterkit