Skip to content

Instantly share code, notes, and snippets.

View denis-shvets's full-sized avatar
👻
Take it Easy

Denis Shvets denis-shvets

👻
Take it Easy
  • Klarna AB
  • Stockholm, Sweden
View GitHub Profile
@denis-shvets
denis-shvets / Ubuntu: Static IP
Last active August 29, 2015 14:18
Ubuntu: Static IP
# sudo nano /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.2.1.200
@denis-shvets
denis-shvets / Ubuntu: Samba Share
Last active August 10, 2016 01:14
Ubuntu: Samba Share
# sudo nano -w /etc/samba/smb.conf
[www]
comment = Web Folder
path = /home/username/www
available = yes
valid users = username
read only = no
browseable = yes
public = yes
@denis-shvets
denis-shvets / Ubuntu: WP nginx config
Last active August 29, 2015 14:18
Ubuntu: WP nginx config
# sudo nano /etc/nginx/sites-available/sitename
server {
listen 80;
server_name sitename;
root /home/username/www/sitename/;
index index.php;
@denis-shvets
denis-shvets / Ubuntu: npm installation
Last active August 29, 2015 14:19
Ubuntu: npm installation
sudo apt-get install nodejs-legacy
sudo apt-get install npm
@denis-shvets
denis-shvets / 01: nginx config
Last active August 29, 2015 14:20
Ubuntu: Static nginx config
# sudo nano /etc/nginx/sites-available/sitename
server {
include /home/username/www/sitename/nginx.conf;
}
# sudo ln /etc/nginx/sites-available/sitename /etc/nginx/sites-enabled/sitename
@denis-shvets
denis-shvets / Illustrator SVG
Created May 16, 2015 21:52
Illustrator SVG
Ctrl + 8
.container {
font-size: 0;
line-height: 0;
text-align: justify;
text-justify: newspaper;
text-align-last: justify;
zoom: 1;
}
.container:after {
@denis-shvets
denis-shvets / JS: jQuery plugin
Last active August 29, 2015 14:21
JS: jQuery plugin
;(function($, document, window, undefined) {
'use strict';
var pluginName = 'pluginname';
var instance = 0;
var PluginName = function(el, options, instance) {
this.instance = instance;
this.options = $.extend({}, options);
this.cache = {
@denis-shvets
denis-shvets / CSS: Sticky Footer
Created May 29, 2015 14:59
CSS: Sticky Footer
@denis-shvets
denis-shvets / no talloc stackframe, leaking memory
Created June 11, 2015 09:24
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
You can also fix this issue while keeping libpam-smbpass installed by running "pam-auth-update" and remove "SMB password synchronization".