Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
TMP_FILE=$(tempfile) | |
echo $TMP_FILE | |
#Retrieve list | |
wget -O $TMP_FILE "http://www.mangareader.net/alphabetical" |& \ | |
sed -n -e 's|.*[^0-9]\([0-9]\{1,3\}\)%.*|\1|p' | \ | |
dialog --gauge " Retrieving Index" 6 100 | |
MANGA_LIST=$(grep "<li><a" $TMP_FILE | sed -e "/_blank/d" -e "s/.*href=\"\(.*\)\">\(.*\)<\\/a>.*/\\1\t\\2/" -e "/^\\/privacy/d;/^\\/search/d;/\\/popular/d;/\\/alphabetical/d;/^#/d;/\\/\t/d") |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<?php | |
/** | |
* Super-simple script to convert a existing project to use namespaces | |
* | |
* @author Hans-Peter Buniat <[email protected]> | |
* @copyright 2012 Hans-Peter Buniat <[email protected]> | |
* @license http://opensource.org/licenses/BSD-3-Clause | |
*/ | |
class namespaceRefactor { |
var CleanWordHTML = function ( str ) | |
{ | |
str = str.replace(/<o:p>\s*<\/o:p>/g, "") ; | |
str = str.replace(/<o:p>.*?<\/o:p>/g, " ") ; | |
str = str.replace( /\s*mso-[^:]+:[^;"]+;?/gi, "" ) ; | |
str = str.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, "" ) ; | |
str = str.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"" ) ; | |
str = str.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, "" ) ; | |
str = str.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"" ) ; | |
str = str.replace( /\s*TEXT-ALIGN: [^\s;]+;?"/gi, "\"" ) ; |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
/** | |
* Function to fix native charCodeAt() | |
* | |
* Now, we can use fixedCharCodeAt("foo€", 3); for multibyte (non-bmp) chars too. | |
* | |
* @access public | |
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt | |
* @note If you hit a non-bmp surrogate, the function will return false | |
* @param str String Mixed string to get charcodes | |
* @param idx Integer Position of the char to get |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[init] | |
defaultBranch = master | |
[core] | |
editor = nvim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
pager = delta |
<? | |
/******************************************** | |
detect SQL injection php | |
ago/2010 - classe testada | |
********************************************/ | |
class detectSQLinjection { | |
//****************************************** | |
function ok() { | |
return count($this->er)==0; | |
} |