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
Kimserey / convert_flv_mp4.sh
Created Jan 4, 2019
Convert flv to mp4 with ffmpeg
View convert_flv_mp4.sh
ffmpeg -i '2019-01-03 15-20-12.flv' -c copy output.mp4
@Kimserey
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 Directory.build.props version <version></version>.
# It dictates all *.dll versions.
$propsPath = "$pwd\Directory.build.props"
[xml]$props = Get-Content $propsPath
@Kimserey
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
cls
set BASE_DIR=C:\Projects\
FOR %%x IN (
repo1,
repo2) DO (
IF NOT EXIST "%BASE_DIR%\%%x.Service" (
git clone https://repo-site.com/%%x.Service
View program.cs
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading;
namespace DistinctAny
{
class Program
{
static void Main(string[] args)
@Kimserey
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
Kimserey / routes.cs
Last active May 10, 2017
ASP.NET Core Routes
View routes.cs
public class T1Controller : Controller
{
// This will not be found
[HttpGet]
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
}
@Kimserey
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() {
gulp.src('scss/*.scss')
.pipe(sass())
.pipe(gulp.dest('.'));
});
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="bower_components/filament-sticky/fixedsticky.css" />
<style>
.fixedtop {
@Kimserey
Kimserey / preview.html
Created Jan 26, 2017
Preview few post from blogger
View preview.html
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<style type="text/css">
.post-title a {
color: #000000;
text-transform: capitalize;
font-size: 13px;
You can’t perform that action at this time.