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
#just a secure sudo | |
bic_sudo() { | |
echo -e "\e[0;31mAre you sure\e[00;m that you want to use sudo?"; | |
echo -e "\e[0;34mMaybe you can do it in other way..." | |
echo -e -n '\e[00m' | |
read suresudo; | |
if [ $suresudo == "yes" ] || [ $suresudo == "y" ] ; | |
then |
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 controller */ | |
//$error = array('error' => $form->getMessages()); | |
//$this->_helper->json( json_encode($error) ); | |
/**/ | |
//post get json objects... | |
function post_confirmation() { | |
please_wait_ui(); | |
$.post("/load/confirm", |
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
$.post("/load/newcard", | |
$("#stored_card_form").serialize(), | |
function(data) { | |
check_data_form(data); | |
}); |
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
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_comments); | |
String htmlComments = getHtmlComment("yourId", "yourShortName"); | |
webDisqus = (WebView) findViewById(R.id.disqus); | |
// set up disqus | |
WebSettings webSettings2 = webDisqus.getSettings(); |
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
#a wicked script composer fix for a wicked unix | |
bic_wicked_composer() { | |
org_path=$PWD | |
sudo mkdir /tmp/mycomposerpath | |
sudo chown $USER /tmp/mycomposerpath | |
mv $org_path/* /tmp/mycomposerpath |
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
#just a secure sudo | |
bic_sudo() { | |
echo -e "\e[0;31mAre you sure\e[00;m that you want to use sudo?"; | |
echo -e "\e[0;34mMaybe you can do it in other way..." | |
echo -e -n '\e[00m' | |
read suresudo; | |
if [ $suresudo == "yes" ] || [ $suresudo == "y" ] ; | |
then |
NewerOlder