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 | |
/** | |
* Script to send an email using Experian UMS with attachments | |
*/ | |
$url = 'http://sysmail.fagms.net/c/tm?ACTION=SYSTEM'; | |
$file = 'test.png'; | |
$aid = 000000; // Replace with your ID | |
$email = '...'; // Replace with your email | |
file_put_contents($file, base64_decode(test_png())); |
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
button = $('button'); | |
if(button.hasClass('close')) { | |
button.delay(1000).queue(function() { | |
$(this).click().dequeue(); | |
}); | |
} |
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
$( ".elem" ).each(function( i ) { | |
$( this ).fadeIn().fadeOut( 1000 * ( i + 1 ) ); | |
}); | |
$( ".elem" ).promise().done(function() { | |
$( "p" ).append( " Finished! " ); | |
}); |
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
## | |
# PostgreSQL module | |
# | |
# | |
## wraps puppetlabs/postgresql | |
## https://forge.puppetlabs.com/puppetlabs/postgresql | |
class mystack::postgresql { | |
class { 'postgresql::globals': |
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
export VAGRANT_LOG=debug | |
or vagrant up --debug | |
Restart host only adapter after network switch / sleep: | |
VBoxManage controlvm "INTPASS_default_1434544929410_91614" setlinkstate2 off | |
VBoxManage controlvm "INTPASS_default_1434544929410_91614" setlinkstate2 on |
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
# use db | |
\c dbname | |
# describe table | |
\d+ tablename | |
# display history | |
\s |
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
setxkbmap -layout "us,de,ru(phonetic)" -option grp:switch,grp:win_space_toggle,grp_led:scroll |
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
chattr +i /etc/deploy/staging/application.ini | |
chattr -i /etc/deploy/staging/application.ini | |
lsattr |
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',1); | |
ini_set('display_startup_errors',1); | |
error_reporting(-1); |
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
alias pbcopy='xclip -selection clipboard' | |
alias pbpaste='xclip -selection clipboard -o' | |
git flow feature start "$(pbpaste | tr -c '[:alnum:]' '-' | tr -s '-' '-')" |
OlderNewer