Skip to content

Instantly share code, notes, and snippets.

View fivethreeo's full-sized avatar

Øyvind Saltvik fivethreeo

  • Levanger, Norway
View GitHub Profile
"use strict";
// https://github.com/storybookjs/storybook/issues/14342
// https://webpack.js.org/contribute/plugin-patterns/#monitoring-the-watch-graph
/**
* Logs the last changed files during webpack rebuilds.
*/
class WebpackLastFilesLoggerPlugin {
constructor() {
this.startTime = Date.now();
@tanhauhau
tanhauhau / my-webpack-plugin.js
Created February 20, 2020 00:55
Webpack additional compilation pass
const PLUGIN_NAME = 'MY_WEBPACK_PLUGIN';
class MyWebpackPlugin {
constructor() {
this.cssReady = false;
this.cssFiles = [];
}
apply(compiler) {
compiler.hooks.watchRun.tap(PLUGIN_NAME, () => {
this.cssReady = false;
git tag -am "annotation goes here" tagname_goes_here # cut a tag
git tag -d tagname_goes_here # burn it
git tag -am "annotation goes here" tagname_goes_here # cut another tag
git push --tags # push tags to remote
git push origin :refs/tags/tagname_goes_here # delete tag from remote
@yoander
yoander / preseed.cfg
Last active November 30, 2023 11:51
Debian automatic installer script
#### Contents of the preconfiguration file (for buster)
### Localization
# Preseeding only locale sets language, country and locale.
#d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string en
d-i debian-installer/country string EC
d-i debian-installer/locale string en_US.UTF-8
# Optionally specify additional locales to be generated.