Skip to content

Instantly share code, notes, and snippets.


Rudy Affandi lesaff

View GitHub Profile
lesaff /
Last active Mar 25, 2018
Batch git init and push for Serverpilot apps
# Bash script to initialize, do first commit and push to git server
# Rudy Affandi (2016)
# Variables
lesaff /
Last active Feb 21, 2016
Web Content Specialist Remote Position

Web Content Specialist

(full time/remote)

Adnet is looking for a web content specialist to join our talented team to manage our clients websites. This is a full time, remote position.

Potential candidate must be able to work remotely, unsupervised and have the self-discipline to maintain the quality of work while providing excellent customer service through email, phone and other means.


  • Ability to communicate with clients effectively
  • Ability to work well in deadline driven environment
lesaff /
Last active Dec 21, 2016
How to generate and use SSL from Let's Encrypt on ServerPilot (for Statamic V1.x)


  • You have already installed Let's Encrypt on your server, if not, follow this link

Let's get started

  1. ssh to production server
  2. sudo as root sudo su
  3. use the following command to generate a new SSL certificate
/home/ubuntu/letsencrypt/letsencrypt-auto certonly --webroot -w /srv/users/serverpilot/apps/app_name/public -d domain.tld -d www.domain.tld
lesaff /
Created Oct 12, 2015 — forked from trdarr/
Deploying Hubot on DigitalOcean (with Slack integration)
lesaff / .bash_aliases
Last active Nov 10, 2015
Collection of bash aliases
View .bash_aliases
# clear aliases
alias cls="clear"
# Gulp & Elixir install/update
alias gulpupdate="npm install gulp laravel-elixir laravel-elixir-imagemin laravel-elixir-sass-compass --save-dev"
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

Responsive iframe css

Use the following code in your css to create responsive iframe

.iframe-container {position: relative; padding-bottom: 56.25%; padding-top: 35px; height: 0; overflow: hidden;}
.iframe-container iframe {position: absolute; top: 0; left: 0; width: 100%; height: 100%;}
lesaff /
Created Sep 9, 2015
Using Highcharts with UIKit Tabs

How to fix Highcharts div width behind hidden UIKit tab?

Add the following to your css

/* Fix chart width behind hidden tab */
.uk-switcher > li {display: block !important; height: 0; overflow-y: hidden;}
.uk-switcher > {height: auto;}