This file contains hidden or 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
:%s`\v(^\s+)@<=([a-z])@=`<p>` " put <p> at the beginning of every line that starts with a-z | |
:%s`\v[a-z]@<=$`</p>` " put a </p> on the end |
This file contains hidden or 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
:set noic | |
:s`\v\s@<=[A-Z]@=`^M`g |
This file contains hidden or 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
0 0 * * * /usr/local/bin/git --git-dir=/hsphere/local/home/user/domain.com/.git checkout -f v1.2 |
This file contains hidden or 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
/** | |
* Explicit fonts | |
*/ | |
div, | |
td, | |
li, | |
p { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} |
This file contains hidden or 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
Hello | |
Sincerely, | |
Organization name | |
*|LIST:ADDRESS|* | |
*|LIST:PHONE|* | |
Update your profile: |
This file contains hidden or 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
#!/bin/bash | |
# vim7.4 | |
./configure --disable-selinux \ | |
--enable-perlinterp \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/lib/python2.7/config \ | |
--enable-python3interp \ | |
--enable-rubyinterp \ | |
--enable-multibyte \ |
This file contains hidden or 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
function howMany(n) { | |
var L = Math.pow(7776, n); | |
var num = Math.log(L); | |
var den = Math.log(26); | |
var total = num / den; | |
//console.log("result", L, num, den, total); | |
console.log("A diceware phrase of", n, "words will give", total, "letters") | |
} |
This file contains hidden or 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 | |
ini_set('display_errors', 'On'); | |
ini_set('html_errors', 0); | |
error_reporting(-1); | |
function ShutdownHandler() | |
{ | |
if(@is_array($error = @error_get_last())) | |
{ | |
return(@call_user_func_array('ErrorHandler', $error)); |
This file contains hidden or 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
#include <stdio.h> | |
void subtract(float, float); /* the function prototype */ | |
int main() | |
{ | |
void MAXCOUNT(float, float); /* the function prototype */ |
This file contains hidden or 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 | |
/* | |
Function change password in htpasswd. | |
Arguments: | |
$user > User name we want to change password to. | |
$newpass > New password | |
$type > Type of cryptogrphy: DES, SHA, MD5. | |
$salt > Option: Add your custom salt (hashing string). | |
Salt is applied to DES and MD5 and must be in range 0-9A-Za-z | |
$oldpass > Option: Add more security, user must known old password to change it. |