The following should be escaped if you are trying to match that character
\ ^ . $ | ( ) [ ]
* + ? { } ,
#!/usr/bin/env bash | |
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
# Make sure that the .gnupg directory and its contents is accessibile by your user. | |
chown -R $(whoami) ~/.gnupg/ | |
# Also correct the permissions and access rights on the directory | |
chmod 600 ~/.gnupg/* | |
chmod 700 ~/.gnupg |
## Editing long shell commands in Sublime Text with edit-and-execute-command | |
## | |
## | |
## Typing "subl" on command line will open Sublime Text by adding this symlink | |
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl ~/bin/subl | |
## | |
## | |
## Make Sublime Text the default editor... | |
## | |
## ...if using BASH |
# Check which version of sed is used when you run the `sed` command | |
# The version that ships with Mac OS X is | |
# /usr/bin/sed | |
which sed | |
# Install gnu-sed using Homebrew | |
# The `--with-default-names` option configures `sed` to use gnu-sed | |
# Without that option, you'll need to type `gsed` to use gnu-sed | |
brew install --default-names gnu-sed |
#################################################################### | |
# Change the number of rows and columns to display in Launchpad # | |
# by typing the following two lines in Terminal. You can use any # | |
# two integers for the number of rows and columns. I'm using 15x10 # | |
#################################################################### | |
defaults write com.apple.dock springboard-columns -int 15 | |
defaults write com.apple.dock springboard-rows -int 10 |
#!/bin/bash | |
# You need ffmpeg and lame utils, which you can install with homebrew: $ brew install ffmpeg lame | |
# Tip – Try adding this one liner to your bash profile as an alias. | |
find . -name "*.flac" -exec ffmpeg -i {} -acodec libmp3lame -ab 320k {}.mp3 \; |
<?php | |
include("lib/http.php"); | |
include("lib/parse.php"); | |
$product_array = array(); | |
$product_count = 0; | |
# Download the target web page | |
$target = "http://www.webbotsspidersscreenscrapers.com/buyair/"; |
[ | |
{ | |
"key": "group_543eec205dd50", | |
"title": "Sponsors Options", | |
"fields": [ | |
{ | |
"key": "field_543eec40c0b04", | |
"label": "Top Banner Sponsors", | |
"name": "top_banner_sponsors", | |
"prefix": "", |
airplane | |
airport | |
bank | |
beer | |
bicycle | |
boat | |
breakfast | |
bus | |
buy | |
cab |