Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Rudy Affandi lesaff

🎯
Focusing
View GitHub Profile
@lesaff
lesaff / initgit.sh
Last active Mar 25, 2018
Batch git init and push for Serverpilot apps
View initgit.sh
#!/bin/bash
# Bash script to initialize, do first commit and push to git server
# Rudy Affandi (2016)
# Variables
gitignore=/srv/users/serverpilot/latest/.gitignore
counter=0
clear
echo
@lesaff
lesaff / job-description.md
Last active Feb 21, 2016
Web Content Specialist Remote Position
View job-description.md

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.

Responsibilities

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

Assumption

  • 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
lesaff / hubot-digitalocean.md
Created Oct 12, 2015 — forked from trdarr/hubot-digitalocean.md
Deploying Hubot on DigitalOcean (with Slack integration)
View hubot-digitalocean.md
@lesaff
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'
View responsive-iframe.md

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
lesaff / uikit-highcharts.md
Created Sep 9, 2015
Using Highcharts with UIKit Tabs
View uikit-highcharts.md

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 > li.uk-active {height: auto;}