This file contains 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
jQuery(document).ready(function($) { | |
$('#registerform').find(':submit').click(function(e) { | |
if( ! isAllowedEmail( $('#user_email').val() ) ) { | |
e.preventDefault(); // Prevent the form from submitting | |
alert('You can only register with an @gmail.com email address!'); | |
return false; | |
} | |
}); | |
}); |
This file contains 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 | |
sudo -i | |
## variables | |
HOSTNAME_NEW=rasple | |
## Delete some packages | |
apt-get purge wolfram-engine | |
apt-get purge libreoffice* |