Skip to content

Instantly share code, notes, and snippets.

View amoilanen's full-sized avatar
💭
"Simplicity is prerequisite for reliability." Edsger W. Dijkstra

Anton Moilanen amoilanen

💭
"Simplicity is prerequisite for reliability." Edsger W. Dijkstra
View GitHub Profile
@amoilanen
amoilanen / launch.json
Created August 22, 2019 09:50 — forked from constantm/launch.json
Get VSCode debug and breakpoints to work with Vue Cli and Jest
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vue-cli-service-tests",
"request": "launch",
"env": {
"NODE_ENV": "test"
},
var spawn = require('child_process').spawn;
var sh = spawn('sh');
sh.stdout.on('data', function (data) {
console.log('sh: \n', data.toString());
});
sh.stderr.on('data', function (data) {
console.error('error: \n', data.toString());
@amoilanen
amoilanen / howto_deb_repackage.txt
Created June 12, 2016 17:10 — forked from shamil/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage dep package:
1: Extract deb package
# dpkg-deb -x <package.deb> <dir>
2: Extract control-information from a package
# dpkg-deb -e <package.deb> <dir/DEBIAN>
3. After completed to make changes to the package, repack the deb
# dpkg-deb -b <dir> <new-package.deb>
@amoilanen
amoilanen / blurayInstall.sh
Created June 12, 2016 16:48 — forked from sixman9/blurayInstall.sh
Install Bluray capability to Ubuntu/debian
#!/bin/bash
#Found at http://askubuntu.com/a/193065/35729
#don't forget to 'chmod +x <thisFile>'
sudo add-apt-repository ppa:motumedia/mplayer-daily
sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get upgrade
@amoilanen
amoilanen / app.tsx
Created September 22, 2015 14:13 — forked from tomaskikutis/app.tsx
react typescript browserify
// npm install browserify -g
// npm install tsd -g
// npm install react tsify
// tsd install react
// browserify app.tsx -p [tsify --jsx=react] -o bundle.js
/// <reference path="typings/react/react.d.ts" />
import React = require("react");
interface HelloWorldComponentProps extends React.Props<any> {