Skip to content

Instantly share code, notes, and snippets.

View LongClipeus's full-sized avatar
:atom:
Focusing

Long Le Van LongClipeus

:atom:
Focusing
View GitHub Profile

Note

  1. You will need Java 8 to run Signaling Server. If you have multiple Java versions installed on the server you can change the default version using the update-alternatives tool as shown below:
sudo update-alternatives --config java 

Set the Default Java Version

@LongClipeus
LongClipeus / Date.java
Last active July 24, 2019 08:01
Training java
import java.util.Scanner;
/**
* Display the calendar of any year
*
* @author LongClipeus
*
*/
public class Date {
@LongClipeus
LongClipeus / InstallJdk.sh
Last active March 25, 2023 19:00
Install jdk from tar.gz file in Ubuntu
sudo su
#create jvm directory
mkdir /usr/lib/jvm
#uncompress, change to your file name
tar -zxf jdk-8u211-linux-x64.tar.gz -C /usr/lib/jvm
#check if files are there
#ls /usr/lib/jvm
@LongClipeus
LongClipeus / install FFmpeg.md
Last active March 14, 2019 06:37
How to compile and install FFmpeg on Ubuntu 16.04 LTS

Install the dependencies

sudo apt-get -y install build-essential autoconf automake cmake libtool git \
checkinstall

mkdir ffmpegtemp
cd ffmpegtemp

mkdir aom
@LongClipeus
LongClipeus / Install e(fx)clipse.md
Last active February 16, 2019 06:24
Install e(fx)clipse into Eclipse in Ubuntu 16.04 LTS

1. Get link to install

Go to address https://www.eclipse.org/efxclipse/releases.html

The latest version of e(fx)clipse is 3.3.0 (2018-05-31). Copy one of the URL (Ex: http://download.eclipse.org/efxclipse/updates-released/3.3.0/site )

2. Installing in Eclipse

Select Help -> Install New Software...

@LongClipeus
LongClipeus / Install Javafx Scene Builder.md
Last active March 26, 2020 04:45
Install Javafx Scene Builder into Eclipse in Ubuntu 16.04 LTS
/* ------------------ Config ------------------ */
#define ST 3 // CHAN ST
#define SH 2 // CHAN SH
#define DS0 5 // CHAN D
#define DS1 4 // CHAN C
/*
#define ST digitalRead(3) // CHAN ST
#define SH digitalRead(2) // CHAN SCK
#define DS0 digitalRead(5) // CHAN DataR
@LongClipeus
LongClipeus / LedMatrix.c
Last active January 15, 2019 05:37
Library led matrix
#include "BTL_ViXuLy.h"
#include "LedMatrix.h"
#include "Librarie.h"
/* ------------------ Config ------------------ */
#define ST PORTCbits.RC0 // CHAN ST
#define SH PORTCbits.RC1 // CHAN SH
#define DS0 PORTCbits.RC2 // CHAN D
#define DS1 PORTCbits.RC3 // CHAN C
@LongClipeus
LongClipeus / DCT-2D.cpp
Created January 6, 2019 02:50
The Discrete Cosine Transform: DCT-2D
#include <iostream>
#include <fstream>
#include <math.h>
using namespace std;
#define LEN 8
#define PI 3.141592654
const char *FILEPATH = "document.txt";