Skip to content

Instantly share code, notes, and snippets.

View davidcsejtei's full-sized avatar

Dávid Csejtei davidcsejtei

  • CEO & Co-Founder of Amicode Expert Kft.
  • Hungary
View GitHub Profile
@davidcsejtei
davidcsejtei / findAndListMB.sh
Last active December 20, 2017 10:12
Find and list (size given in MB not in KB) files larger than 10 MB in /home directory in Ubuntu
find /home -size +10M | xargs du -sch
@davidcsejtei
davidcsejtei / ping.sh
Last active December 20, 2017 12:52
Ping with given size data without fragmentation
#LINUX: Ping google.com 10 times with 1460 bytes of data without fragmentation
ping google.com -c 10 -s 1460 -M do
@davidcsejtei
davidcsejtei / traceroute.sh
Created December 20, 2017 13:10
Traceroute
#LINUX: Get the nodes from me and annother address (-I: use ICMP ECHO for probes)
traceroute google.com -I
@davidcsejtei
davidcsejtei / gist:8eb3881f99171d37f331c191470856be
Last active January 6, 2018 11:35
Update node in Ubuntu to version 8.* (npm will be updated automatically)
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
@davidcsejtei
davidcsejtei / update npm to the latest version
Created February 13, 2018 10:04
Update npm to the latest version
//Win & Ubuntu
npm i -g npm@latest
@davidcsejtei
davidcsejtei / Set php mail
Created February 20, 2018 13:21
Set php mail
sudo apt-get install sendmail
sudo sendmailconfig
sudo service apache2 restart
{
"name": "",
"version": "0.0.1",
"description": "",
"author": "Dávid Csejtei",
"scripts": {
"start": "webpack-dev-server --open --config webpack.development.js",
"build": "webpack --config webpack.production.js"
},
"dependencies": {
var path = require('path');
var webpack = require('webpack');
var CompressionPlugin = require('compression-webpack-plugin');
module.exports = {
entry: '',
output: {
path: path.resolve(__dirname, ''),
filename: '',
library: '',
{
"presets": ["@babel/preset-env","@babel/preset-react"]
}
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: ["babel-polyfill", "./src/index.js"],
plugins: [
new HtmlWebpackPlugin({
title: '',
template: './webpack-template/index.ejs',