Skip to content

Instantly share code, notes, and snippets.

@rwenz3l
rwenz3l / proxmox_lxc_nfs_server.md
Last active April 12, 2024 19:49
Install a NFS Server inside a LXC Container on Proxmox 5.1

Installing NFS inside LXC Container on Proxmox 5.1

Host Setup:

Create LXC Container as usual, but do not start it yet.

# Install NFS-Kernel on Host
apt install nfs-kernel-server
@higee
higee / AWSKRUG_elastic_stack.md
Last active November 8, 2017 07:14
AWSKRUG Data Science (Big Data) 20170817 Presentation

Basic Settings


  • aws ec2
    • image : Amazon Linux AMI (ami-8663bae8)
    • instance type : t2 medium
    • security group(port) : 5601, 9200, 9300

Upgrade to Java 1.8

# /etc/nginx/sites-enabled/site-domain
upstream backend {
server 127.0.0.1:7777 weight=100 max_fails=5 fail_timeout=5;
server 127.0.0.1:7778 weight=100 max_fails=5 fail_timeout=5;
}
server {
listen 80;
server_name www.xxx.com;
return 301 http://xxx.com$request_uri;
@thisismitch
thisismitch / filebeat-index-template.json
Last active February 28, 2020 21:11
Filebeat configuration with comments removed
{
"mappings": {
"_default_": {
"_all": {
"enabled": true,
"norms": {
"enabled": false
}
},
"dynamic_templates": [
@acidsound
acidsound / CoreMeteor_SEO.md
Last active February 7, 2017 08:01
[Core Meteor] SEO 제대로 처리하기

layout : tutorials title : SEO 제대로 처리하기 category : tutorials subcategory : data-binding summary : facebook/google 등 SEO들이 원하는 부분을 서버사이드 렌더링 없이 필요한 부분만 WebApp package를 사용하여 효율적으로 구현한다. permalink : /tutorials/core_meteor/1_meteor_seo title_background_color : RGB(8, 78, 119) tags : javascript meteor SEO author : Lee jae ho

@denji
denji / nginx-tuning.md
Last active May 3, 2024 03:57
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@ck-on
ck-on / ocp.php
Last active March 25, 2024 09:30
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@kimlindholm
kimlindholm / varnish.tokyo.vcl
Created February 6, 2012 19:28
Varnish configuration example
# VCL configuration file for Varnish
# Define which IP addresses or hosts have access to files that are
# blocked from the public internet
acl internal {
"localhost";
}
# Define origin servers
backend web { .host = "1.2.3.4"; .port = "80"; }