Skip to content

Instantly share code, notes, and snippets.

@gihyunlee
gihyunlee / AlfrescoMysql2Postgresql.txt
Created February 26, 2021 19:05 — forked from loftux/AlfrescoMysql2Postgresql.txt
Alfresco Mysql to Postgresql migration. This is a simple outline on how to migrate Alfresco from mysql to postgresql.
Prerequisite
One instance of Alfresco on mysql, one postgresl of exactly the same version (schema version).
Step 1. Dump database
mysqldump --port 3306 -u alfresco --password=alfloftux -h 127.0.0.1 --databases alfresco --skip-comments --skip-extended-insert --no-create-db --hex-blob --default-character-set=utf8 --skip-triggers --compact --no-create-info --skip-quote-names > mydump.sql
Step 2. Dump local Postgres schema
You can install a clean version of Alfresco to use as for schema dump
(need to insert command for dump here)
@gihyunlee
gihyunlee / alfresco.service
Created August 3, 2017 19:53
Ubuntu 16.04 Alfresco Service
[Unit]
Description=Alfresco Content Services
[Service]
Type=forking
ExecStart=/opt/alfresco-content-services/alfresco.sh start
ExecStop=/opt/alfresco-content-services/alfresco.sh stop
Restart=always
User=ubuntu
WorkingDirectory=/opt/alfresco-content-services/logs
@gihyunlee
gihyunlee / activiti.service
Last active August 3, 2017 19:56
Ubuntu 16.04 APS service
[Unit]
Description=Alfresco Process Services
After=alfresco.service
Requires=alfresco.service
[Service]
Type=forking
ExecStart=/opt/alfresco-process-services/start-process-services-postgres.sh
ExecStop=/opt/alfresco-process-services/stop-process-services-postgres.sh

Keybase proof

I hereby claim:

  • I am gihyunlee on github.
  • I am ghlco (https://keybase.io/ghlco) on keybase.
  • I have a public key whose fingerprint is F5F1 5C03 F359 D613 D581 E50D 6B3D CF13 C818 5079

To claim this, I am signing this object:

@gihyunlee
gihyunlee / makeapp.sh
Created November 13, 2015 21:07 — forked from demonbane/makeapp.sh
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@gihyunlee
gihyunlee / css_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@gihyunlee
gihyunlee / javascript_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@gihyunlee
gihyunlee / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# ---------------------------------------------------------------------------
#
# 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