Skip to content

Instantly share code, notes, and snippets.

// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract ERC20_Token_Sample is ERC20, ERC20Burnable {
constructor() ERC20("ERC20 Token Sample1", "Sample 1") {
@rrymm
rrymm / mirth_setup.md
Created May 3, 2019 01:41 — forked from jgautsch/mirth_setup.md
Setting up Mirth Connect for production

Mirth Server Setup

First create ec2 Ubuntu instance

Then install all the things needed for Mirth Connect (following this video: http://www.youtube.com/watch?v=omZyAO2naqs)

# Update Ubuntu
sudo aptitude update

# Safe upgrade of Ubuntu
sudo aptitude safe-upgrade
@rrymm
rrymm / LG infrared codes
Created April 15, 2019 21:32 — forked from francis2110/LG infrared codes
Lg infrared codes for making your own remote
on-off->20DF10EF
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F
tv/rad->20DF0FF0
1->20DF8877
2->20DF48B7
3->20DFC837
4->20DF28D7
5->20DFA857
@rrymm
rrymm / irEmitterApp
Created April 15, 2019 21:29 — forked from francis2110/irEmitterApp
application for send infrared codes to LG tv with arduino
#include <IRremote.h>
IRsend irsend;
#define onOffReceived 10
#define energyRcv 11
#define avMode 12
#define input 13
#define tvRad 14
#define list 15
#define quickView 16
#define volumeUp 17
@rrymm
rrymm / ExoPlayerDemoFragment.java
Created February 5, 2019 09:49 — forked from bapspatil/ExoPlayerDemoFragment.java
Generic code to set up ExoPlayer in a Fragment
/*
** Created by bapspatil
*/
public class ExoPlayerDemoFragment extends Fragment {
@BindView(R.id.video_exoplayer_view) SimpleExoPlayerView mPlayerView;
private SimpleExoPlayer mPlayer;
private Unbinder unbinder;
public ExoPlayerDemoFragment() {

Mirth Server Setup

First create ec2 Ubuntu instance. This can be 14.04 now on MirthConnect 3.2 and above. Hurray!

Great thanks for the original guide: https://gist.github.com/jgautsch/9157402

# Update Ubuntu
sudo aptitude update

# Safe upgrade of Ubuntu
sudo aptitude safe-upgrade
@rrymm
rrymm / LOGIN ANDROID
Created November 26, 2018 00:26 — forked from chukitow/LOGIN ANDROID
this is a login in android using HTTP,POST,JSON
package com.example.situc;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
@rrymm
rrymm / firewall.sh
Created October 25, 2018 02:31 — forked from mshroyer/firewall.sh
iptables firewall script for buildserv
#!/bin/sh
### BEGIN INIT INFO
# Provides: firewall
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: iptables firewall
# Description: Custom iptables firewall

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@rrymm
rrymm / README.md
Created August 14, 2018 03:21 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8