Skip to content

Instantly share code, notes, and snippets.

@davemkirk
davemkirk / wpt_server_setup.sh
Last active February 7, 2017 00:14
WebPageTest Server Setup - Ubuntu 12.04 LTS
#!/bin/bash
apt-get update -y
apt-get install apache2 -y
apt-get install php5 libapache2-mod-php5 -y
/etc/init.d/apache2 restart
apt-get install php5-gd -y
apt-get install php5-curl -y
@jasny
jasny / bootstrap-em.less
Last active January 5, 2020 15:36
Use em or rem font-size in Bootstrap 3
/**
* Use em or rem font-size in Bootstrap 3
*/
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
@azmelanar
azmelanar / 01-fedora.sh
Last active May 9, 2021 19:27
Fedora Kickstart
#!/usr/bin/env bash
# GENERAL
## Configurate Swap
echo -e "\n
# Configurate swap
vm.swappiness = 10
vm.vfs_cache_pressure = 50" >> /usr/lib/sysctl.d/00-system.conf
@sergejmueller
sergejmueller / ttf2woff2.md
Last active March 9, 2024 13:37
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
@yannvr
yannvr / compassFlexMixins
Created June 11, 2014 19:54
Cross browser Flex mixins
// ==================================================================
// Flexbox
//
// Implementation based on Chris Coyier's article:
// Using Flexbox: Mixing Old and New for the Best Browser Support || http://css-tricks.com/using-flexbox/
// ==================================================================
// Flexbox Context (applied to container element of flex items)
@mixin flex-display {
@include experimental-value(display, box, -moz, -webkit, -ms, not -khtml, official);
@thde
thde / whois.conf
Last active January 17, 2025 07:43
/etc/whois.conf WHOIS records for nTLDs.
##
# WHOIS servers for new TLDs (http://www.iana.org/domains/root/db)
# Current as of 2017-12-10 UTC
##
\.aarp$ whois.nic.aarp
\.abarth$ whois.afilias-srs.net
\.abbott$ whois.afilias-srs.net
\.abbvie$ whois.afilias-srs.net
\.abc$ whois.nic.abc
@sheharyarn
sheharyarn / mongo_backup.sh
Last active December 12, 2024 15:16
Mongodump Shell Script for Cronjob
#!/bin/bash
MONGO_DATABASE="your_db_name"
APP_NAME="your_app_name"
MONGO_HOST="127.0.0.1"
MONGO_PORT="27017"
TIMESTAMP=`date +%F-%H%M`
MONGODUMP_PATH="/usr/bin/mongodump"
BACKUPS_DIR="/home/username/backups/$APP_NAME"
@bengolder
bengolder / bash_commands.sh
Last active July 10, 2016 15:31
some useful bash commands that I only use occasionally
# checkout where a network connection is routed
traceroute [some address]
# see all the user accounts
cat /etc/passwd
# see all the processes
ps aux
# see running processes
@learncodeacademy
learncodeacademy / gist:ebba574fc3f438c851ae
Created July 24, 2014 14:47
Nginx Node Frontend / Load Balancer / Static Assets Caching
upstream project {
server 22.22.22.2:3000;
server 22.22.22.3:3000;
server 22.22.22.5:3000;
}
server {
listen 80;
location / {
@netzwahnHH
netzwahnHH / column-classes
Last active August 29, 2015 14:04
Sass adaption of "Bootstrap v3.2 optional responsive CSS classes"
// Generate optional visibility layout classes for the different viewports of Bootstrap
// Sass adaption of Bootstrap v3.2 optional responsive CSS classes https://gist.github.com/webtobesocial/2f3d9254e696336a083b#file-column-classes-css
@mixin optional-viewport-only-column($visibilty-class) {
@for $i from 1 through 12 {
.col-#{$visibilty-class}-#{$i}-only {
width: (($i/12)*100) * 1%;
}
}
}