Skip to content

Instantly share code, notes, and snippets.

@tspicer
tspicer / theme
Created April 16, 2016 19:58
theme
{"last_tab":"5","theme-skin":"ascend","favicon":{"url":"","id":"","height":"","width":"","thumbnail":""},"button-styling":"rounded","theme-icon-style":"minimal","overall-bg-color":"#edeff0","overall-font-color":"#000000","back-to-top":"1","back-to-top-mobile":"0","smooth-scrolling":"0","one-page-scrolling":"1","responsive":"1","ext_responsive":"1","lightbox_script":"magnific","default-lightbox":"1","column_animation_easing":"easeOutQuart","column_animation_timing":"1000","external-dynamic-css":"0","google-analytics":"","custom-css":"","accent-color":"#5fcf80","extra-color-1":"#f1564f","extra-color-2":"#6b7a88","extra-color-3":"#333333","boxed_layout":"1","background-color":"#edeff0","background_image":{"url":"","id":"","height":"","width":"","thumbnail":""},"background-repeat":"","background-position":"","background-attachment":"","background-cover":"0","extended-theme-font":"0","navigation_font_family":{"font-family":"","font-options":"","google":"1","font-weight":"","font-style":"","subsets":"","text-transf
@tspicer
tspicer / gist:fce40c53db64df5188e1
Created July 29, 2014 16:39
remove files without touch subdir
find /path/ -type f -print0 | xargs -0 -I file rm -f file
@tspicer
tspicer / resize-root-volume-ec2
Created February 14, 2014 14:23
Resize Root Volume Linux on EC2
Stop the instance
Create a snapshot from the volume
Create a new volume based on the snapshot increasing the size
Check and remember the current's volume mount point (i.e. /dev/sda1)
Detach current volume
Attach the recently created volume to the instance
Access via SSH to the instance and run fdisk /dev/<volume>
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u')
@tspicer
tspicer / gist:8310181
Created January 8, 2014 01:34
Changing the time on the CentOS servers
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime