- Open /lib/plymouth/themes/elementary/elementary.script
- add
aspectRatio = Window.GetWidth() / 1366;
- find
logo.image = Image (logo_filename).Scale (logo.screen_size, logo.screen_size);
- change to
logo.image = Image (logo_filename).Scale (logo.screen_size * aspectRatio, logo.screen_size);
- (also apply to
logo_blurred
) - save
sudo update-initramfs -u
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
function jsp_switch_page_template() { | |
global $post; | |
if (is_page() && !get_page_template_slug( $post->ID )) { //if no template was selected via WP | |
$ancestors = $post->ancestors; | |
if ($ancestors) { | |
$templatePath = TEMPLATEPATH . '/'; | |
$prefix = 'page-'; //default page template prefix | |
$ext = '.php'; |
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
function jsp_switch_category_template() { | |
if (is_category()) { | |
$ancestors = get_ancestors(get_query_var('cat'),'category'); | |
$catname = get_query_var('category_name'); | |
if ($ancestors) { | |
$templatePath = TEMPLATEPATH . '/'; | |
$prefix = 'category-'; //default page template prefix | |
$ext = '.php'; | |
$appender = '_child'; | |
$parent_id = $ancestors[0]; |
svn checkout https://github.com/foobar/Test/trunk/foo
where trunk
= tree/master
Go to www
directory with subdirectory option
wwwdir() { cd /var/www/$1 }
alias www=wwwdir
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
OR
npm dedupe
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
{ | |
"auto_complete": false, | |
"auto_complete_commit_on_tab": false, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 0, | |
"caret_extra_top": 0, | |
"caret_extra_width": 1, | |
"caret_style": "phase", | |
"color_inactive_tabs": true, | |
"color_scheme": "Packages/Seti_UI/Scheme/Seti_monokai.tmTheme", |
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
sudo usermod -aG www-data username | |
sudo chown -R www-data:www-data /var/www/example.com/public_html | |
sudo chmod -R 770 /var/www/example.com/public_html |
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
//from http://stackoverflow.com/a/7936999 | |
function transposeChord(chord, amount) { | |
var scale = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]; | |
return chord.replace(/[CDEFGAB]#?/g, | |
function(match) { | |
var i = (scale.indexOf(match) + amount) % scale.length; | |
return scale[ i < 0 ? i + scale.length : i ]; | |
}); | |
} |
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
var app = (function(){ | |
return { | |
events: function() { | |
//form | |
var $form = $('#subscribeForm'), | |
$formContainer = $('.form-container'), | |
$notify = $('.error-msg',$formContainer); | |
if ( $form.length > 0 ) { | |
$form.on('submit',function(e){ |
OlderNewer