Skip to content

Instantly share code, notes, and snippets.

View terrynguyen255's full-sized avatar

Terry Tu Nguyen terrynguyen255

  • HCMC
  • 02:31 (UTC +07:00)
View GitHub Profile
This file has been truncated, but you can view the full file.
#EXTM3U url-tvg="http://lichphatsong.xyz/schedule/beartv_epg.xml"
#EXTM3U Folked from BEARTV - V7
#EXTINF:-1 tvg-id="vtv1hd" group-title="VTV" tvg-logo="https://i.ibb.co/mBHRZbg/VTV1-BEARTV.png",VTV1
#EXTVLCOPT:http-user-agent=ReactNativeVideo/3.4.4 (Linux;Android 9) ExoPlayerLib/2.13.3
#EXTVLCOPT:http-referer=https://sctvonline.vn/
https://e2.endpoint.cdn.sctvonline.vn/hls/vtv1/index.m3u8
#EXTINF:-1 tvg-id="vtv2hd" group-title="VTV" tvg-logo="https://i.ibb.co/1rGZzbN/VTV2-BEARTV.png",VTV2
#EXTVLCOPT:http-user-agent=ReactNativeVideo/3.4.4 (Linux;Android 9) ExoPlayerLib/2.13.3
# How to add Git GUI to Ubuntu favorites
# Works best on my laptop DELL XPS 9570 - Ubuntu 18.04
git gui
# Then add below file as /usr/share/applications/gitgui.desktop
# [Desktop Entry]
# Type=Application
# Encoding=UTF-8
# Terminal=false
# Works best on my laptop DELL XPS 9570 - Ubuntu 18.04
#!/bin/bash
touchpad_id=$(xinput list | sed -nre '/Touchpad/s/.*id=([0-9]*).*/\1/p')
state=$( xinput list-props "$touchpad_id" | grep "Device Enabled" | grep -o "[01]$" )
if [ "$state" -eq '1' ];then
xinput --disable "$touchpad_id" && notify-send -i emblem-nowrite "Touchpad" "Disabled"
@terrynguyen255
terrynguyen255 / reducers.js
Created June 11, 2019 20:53
app/reducers.js
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import history from 'utils/history';
import globalReducer from 'containers/App/reducer';
export default function createReducer(injectedReducers = {}) {
const rootReducer = combineReducers({
global: globalReducer,
router: connectRouter(history),
...injectedReducers,