Skip to content

Instantly share code, notes, and snippets.

@johnfelipe
johnfelipe / start-sqlpad.sh
Created June 20, 2022 11:36 — forked from mebaysan/start-sqlpad.sh
A script file to start SQLPad on local machine by using Docker
#! /bin/bash
sudo docker run \
-v /home/mebaysan/Desktop/NorthwindDB.sqlite:/databases/NorthwindDB.sqlite \
--net=host \
--env SQLPAD_PORT=8000 \
--env SQLPAD_USERPASS_AUTH_DISABLED="false" \
--env SQLPAD_ADMIN="admin@admin.com" \
--env SQLPAD_ADMIN_PASSWORD="123." \
--env SQLPAD_CONNECTIONS__defaultcon__name="Nortwhind Conn" \
GroupDocs.Translation Cloud-Python
@johnfelipe
johnfelipe / opensim_ubuntu_20.04.md
Created May 21, 2022 04:29
msbuild missing on Ubuntu 20.04 LTS

I'm working on the Opensimulator project. After upgrading Ubuntu 18.04 LTS to Ubuntu 20.04 LTS I was no longer able to compile the project using msbuild. msbuild could not be found. Trying to revert back and simply reinstall Mono according to the instructions for Ubuntu 18.04 on the Mono Project Download site didn't resolve the problem.

Finally I found a solution. I completely removed Mono from my installation. Even there is a stable-focal repository I decided to use the stable-bionic repository for a temporary solution until things get fixed.

As such I started with the instructions for Ubuntu 18.04 on the Mono Project Download site.

sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" |

@johnfelipe
johnfelipe / coturn.md
Created September 29, 2017 12:41 — forked from uemuraj/coturn.md
TURNサーバの構築

TURNサーバの構築

WebRTCを使ってみよう! で紹介されている rfc5766-turn-server は既に更新が終わり、別のプロジェクトになっています。

coturn を代わりに使用します。 https://github.com/coturn/coturn/wiki/Downloads から最新バージョンをダウンロードしてビルドします。

※ダウンロードページに turnserver-*-amazon-aws-ec2-x86_64.txt というファイルあり! EC2 ではこの内容にも注意すること

ビルドに必要なパッケージをインストール

@johnfelipe
johnfelipe / gist:e2ad6fcb6f33519cd1b596171b6d1825
Created April 19, 2017 14:47 — forked from fovtran/gist:5803898
ODE + Opensim under FreeBSD 9.0
# Configuring OpenSim+ODE over FreeBSD 9.0
#
optain the package from
Linux Bin: http://opensimulator.org/dist/opensim-0.7.3.1.tar.gz
Source tar: git clone git://opensimulator.org/git/opensim
Configuration files:
./OpenSimDefaults.ini
@johnfelipe
johnfelipe / import.js
Created February 1, 2017 19:02 — forked from mjlescano/import.js
Imports Topics to DemcoracyOS from a JSON file
const fs = require('fs')
const mongoose = require('mongoose')
const Batch = require('batch')
const models = require('lib/models')
const data = require('./topics.json')
const ObjectId = mongoose.Schema.ObjectId
models()
@johnfelipe
johnfelipe / gw-gp-limit-choices-shortcodes.php
Created September 13, 2016 21:54 — forked from spivurno/gw-gp-limit-choices-shortcodes.php
Gravity Wiz // Gravity Perks // GP Limit Choices // Shortcodes
<?php
/**
* Gravity Wiz // Gravity Perks // GP Limit Choices // Shortcodes
*
* Provides several shortcodes providing the ability to display the number of times a choice has been selected,
* the total number of times a choice can be selected, and the remaining number of times a choice can be selected.
*
* @version 1.0
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
@johnfelipe
johnfelipe / RocketChat.sh
Created June 29, 2016 05:46 — forked from ellipsonic/RocketChat.sh
Meteor Rocket Chat
# Update
sudo apt-get -y update
# Install git and curl
sudo apt-get -y install curl
sudo apt-get -y install git
sudo apt-get -y install mongodb
# Install meteor
sudo curl https://install.meteor.com/ | sh
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
sudo vi /etc/resolv.conf
comment all lines and add following line at the end
nameserver 8.8.8.8
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.1.2