Skip to content

Instantly share code, notes, and snippets.

Kimserey Lam Kimserey

Block or report user

Report or block Kimserey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Kimserey /
Created Jan 4, 2019
Convert flv to mp4 with ffmpeg
ffmpeg -i '2019-01-03 15-20-12.flv' -c copy output.mp4
Kimserey / release.ps1
Last active Apr 1, 2018
Use Gitversion to find version of current branch, commit and tag to prepare for release
View release.ps1
# Get the version from master branch by running gitversion.
# Make sure Gitversion is registered in PATH!
$version = gitversion /showvariable semver
# Update version <version></version>.
# It dictates all *.dll versions.
$propsPath = "$pwd\"
[xml]$props = Get-Content $propsPath
Kimserey / restore-project-repo.cmd
Last active Jul 21, 2017
Cmd script with FOR IN and IF statements
View restore-project-repo.cmd
echo OFF
set BASE_DIR=C:\Projects\
FOR %%x IN (
repo2) DO (
IF NOT EXIST "%BASE_DIR%\%%x.Service" (
git clone
View program.cs
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading;
namespace DistinctAny
class Program
static void Main(string[] args)
Kimserey / npm cli
Created May 21, 2017
List top level installed packages
View npm cli
npm ls --depth=0
npm -g ls --depth=0
Kimserey / routes.cs
Last active May 10, 2017
ASP.NET Core Routes
View routes.cs
public class T1Controller : Controller
// This will not be found
public IEnumerable<string> Get()
return new string[] { "value1", "value2" };
Kimserey / gulpfile.js
Created Mar 24, 2017
Gulp file with sass compilation and bootup of live-server
View gulpfile.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var exec = require('child_process').exec;
gulp.task('sass', function() {
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="bower_components/filament-sticky/fixedsticky.css" />
.fixedtop {
Kimserey / preview.html
Created Jan 26, 2017
Preview few post from blogger
View preview.html
<!DOCTYPE html>
<style type="text/css">
.post-title a {
color: #000000;
text-transform: capitalize;
font-size: 13px;
You can’t perform that action at this time.