Skip to content

Instantly share code, notes, and snippets.

View anichitiandreea's full-sized avatar

Andreea Anichiti anichitiandreea

View GitHub Profile
@ansulev
ansulev / convert-crt-to-jks.sh
Created August 15, 2018 10:22
Convert .CRT y .KEY Certificates to JKS Keystore
# Convert it into pkcs12 format
openssl pkcs12 -export -out jenkins.p12 -inkey certificate.key -in certificate.crt -name "jenkins-cert"
# Create keystore if not exist
https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
# Import
keytool -importkeystore -srckeystore jenkins.p12 -srcstoretype pkcs12 -destkeystore keystore.jks
@moeiscool
moeiscool / README.md
Last active June 2, 2024 06:23
Run PHP Site in Node.js with Express Web Server and node-php

Installing MariaDB and Creating a user

You must be root to follow the steps in this guide.

  1. Download and Install MariaDB. MariaDB is used in place of MySQL.
sudo apt-get install mariadb-server mariadb-client
  1. Set it up to run on boot.
@pablen
pablen / PubSub.js
Created January 13, 2018 21:16
React PubSub pattern
import React, { Component } from 'react';
import PubSub from 'pubsub-js';
class App extends Component {
state = { show: true };
render() {
return (
<div className="App">
<button onClick={() => this.setState(state => ({ show: !state.show }))}>
{this.state.show ? 'Hide panel' : 'Show panel'}
@davidfowl
davidfowl / dotnetlayout.md
Last active July 4, 2024 01:57
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/