Skip to content

Instantly share code, notes, and snippets.

View andrzejdus's full-sized avatar
👻

Andrzej Duś andrzejdus

👻
  • syzygy.pl
  • Warsaw, Poland
View GitHub Profile
@andrzejdus
andrzejdus / pihole-docker-update.sh
Created May 23, 2022 16:39
pihole docker update commands
#!/bin/sh
sudo docker pull pihole/pihole:latest
sudo docker-compose stop pihole
sudo docker rm -f pihole
sudo docker-compose up --detach

Keybase proof

I hereby claim:

  • I am andrzejdus on github.
  • I am gogoad (https://keybase.io/gogoad) on keybase.
  • I have a public key ASD7ztPQ53W_UtHlNavhdYtKoVi8vmghGnzHXA7ddc4Dewo

To claim this, I am signing this object:

@andrzejdus
andrzejdus / webpack-separate-node-modules.js
Created November 17, 2017 09:52
WebPack - separate node modules
plugins: [
new webpack.optimize.CommonsChunkPlugin({
name: 'node-static',
filename: 'node-static.js',
minChunks(module, count) {
var context = module.context;
return context && context.indexOf('node_modules') >= 0;
},
})
]
@andrzejdus
andrzejdus / .gitignore
Last active December 14, 2015 17:39
General .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@andrzejdus
andrzejdus / gist:4068039
Created November 13, 2012 20:04
Calling virtual function in base class constructor
#include <iostream>
using namespace std;
class Base {
public:
Base() {
cout << "Constructor" << endl;
// which Method will be called here?