#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; |
#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%
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
| #!/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 |
| #!/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 |
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]
| <?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) |
| <!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__); | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Testing Char</title> | |
| <style type="text/css"> | |
| @import url(https://fonts.googleapis.com/css?family=Roboto); | |
| body { | |
| font-family: 'Roboto'; | |
| font-size: 18px; padding: 5px; | |
| } |