This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -A.png,.jpg,.gif,.jpeg -e robots=off -m -k -nv -np -p \ --user-agent="Mozilla/5.0 (compatible; Konqueror/3.0.0/10; Linux)" \ http://site.url/ | |
# -A comma-separated list of accepted extensions. | |
# -e execute a `.wgetrc'-style command. | |
# -m shortcut for -N -r -l inf --no-remove-listing. | |
# -k make links in downloaded HTML or CSS point to local files. | |
# -nv turn off verboseness, without being quiet. | |
# -np don't ascend to the parent directory. | |
# -p get all images, etc. needed to display HTML page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Split file "bigfile.sql" by SIZE | |
split -b 10[k|m] bigfile.sql bigfile.spl. | |
# or LENGTH | |
split -l 10 bigfile.sql bigfile.spl. | |
# bigfile.spl.aa | |
# bigfile.spl.ab | |
# bigfile.spl.ac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Google Maps JavaScript API v3 Example: Map Simple</title> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript"> | |
var geocoder, map, marker; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source | |
# --------------------------- | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
*.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.screencapture location /Users/USER/Bilder/Screenshots | |
killall SystemUIServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert .iso to .img. OS X will create a ".img.dmg", don't rename it | |
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/os.iso | |
# Remove your USB device and run | |
diskutil list | |
# Insert USB device and run diskutil again | |
diskutil list | |
# Determine the device node assigned to your flash media (e.g. /dev/disk2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "chef/debian-7.6" | |
config.vm.network :private_network, ip: "192.168.222.222" | |
# config.vm.synced_folder ".", "/var/www", owner: "www-data", group: "www-data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery pluginName | |
* Original author: Chris Hartmann @chriha | |
* | |
* Calling the plugin: | |
* | |
* $( '#element-id' ).pluginName( { value1: false } ); | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* for shop versions 4.7.x / 5.0.x | |
* # copy the source-themefolders in application/views/tpl and /out and rename | |
* # Adjust values for Source and Target below | |
* # Put file into rootlevel | |
* # run this script | |
* # delete this file after usage | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns the ISO alpha-2 code of a country | |
* | |
* @param string $country The country to search for | |
* @return string | |
*/ | |
function iso_by_country( $country ) | |
{ |
OlderNewer