Tambahkan alamat IP dan nama domain dibawah ke file hosts
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>Print External Link</title> | |
| <script type="text/javascript"> | |
| function closePrint () { | |
| document.body.removeChild(this.__container__); | |
| } |
| <?php | |
| /* Function: download with resume/speed/stream options */ | |
| /* | |
| * Parametrs: downloadFile(File Location, File Name, | |
| * max speed, is streaming | |
| * If streaming - movies will show as movies, images as images | |
| * instead of download prompt | |
| */ | |
| function downloadFile($fileLocation, $fileName, $maxSpeed = 13, $doStream = false) |
Setting up one codeigniter for multiple site:
example root folder: /home/myweb/public_html/
to keep it nice and tidy
/home/myweb/ci [all codeigniter files]
/home/myweb/ci/system [codeigniter system folder & sub-folder]
| #!/bin/bash | |
| echo "Deleting log file" | |
| sudo -s -- <<EOF | |
| find /var/log -type f -regex ".*\.gz$" -delete | |
| find /var/log -type f -regex ".*\.[0-9]$" -delete | |
| echo "Done." | |
| EOF | |
| exit |
| #!/bin/bash | |
| echo "Make user as root" | |
| sudo -s -- <<EOF | |
| echo "Clean system cache.." | |
| apt-get clean | |
| apt-get autoclean | |
| apt-get autoremove | |
| echo "Reducing final box" | |
| dd if=/dev/zero of=/EMPTY bs=1M | |
| rm -f /EMPTY |
If you run bcdedit with no arguments, you should see a property called hypervisorlaunchtype. This will be set to off or auto.
To disable Hyper-V in order to use VirtualBox, open a command prompt as administrator and run the command:
bcdedit /set hypervisorlaunchtype off
You’ll need to reboot, but then you’ll be all set to run VirtualBox. To turn Hyper-V back on, run:
bcdedit /set hypervisorlaunchtype auto
#IF A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
#EQUALS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#THEN K + N + O + W + L + E +D + G + E 11 + 14 + 15 + 23 + 12 + 5 + 4 + 7 + 5 = 96%
| // Smoothscroll | |
| function ssc_init() { | |
| if (!document.body) return; | |
| var e = document.body; | |
| var t = document.documentElement; | |
| var n = window.innerHeight; | |
| var r = e.scrollHeight; | |
| ssc_root = document.compatMode.indexOf("CSS") >= 0 ? t : e; | |
| ssc_activeElement = e; | |
| ssc_initdone = true; |
I got tired on creating new files manually for each new post a write so I put together this little command line task with Thor.
It creates a new file in the _posts directory with today’s date, parses the parameters to command as the post’s title and adds that as a slug to the new file. It then writes a default yaml template to the file (as specified in the script).
Running thor jekyll:new New and shiny post will for example create the file _posts/2012-12-28-new-and-shiny-post.markdown, populate it with an yaml template and finally open the file in my favorite editor.
Add the following to your Gemfile: