All posts in 'Shortcuts'

Twitter Bootstrap: Make the default pills more usable


The default basic pills from Bootstrap are somewhat useless as they don’t change their state (class=”active”). I use the following javascript snippet to change that: $(’ul.nav.nav-pills li a’).click(function() { $(this).parent().addClass(’active’).siblings().removeClass(’active’); });$(‘ul.nav.nav-pills li a’).click(function() { $(this).parent().addClass(‘active’).siblings().removeClass(‘active’); });

Read the complete article »

Git snippets


These are a view things that i had looked up to solve some problems and i plan to update this post regularly… To push a new branch to remote git push origin new_branchgit push origin new_branch To delete a remote branch git push origin :new_branchgit push origin :new_branch To push new tags git push –tags […]

Read the complete article »

Scripted network mounts with Windows


I have some services and scheduled tasks that call a Batch file under windows. The scheduled tasks cannot access network drives that the assigned user has defined, but luckily there is a “mount” pendant within Windows as well. To mount a network share within the Batch script use: net use t: \\server\share /persistent:no The authentication […]

Read the complete article »

Create reusable MySQL schema dumps


In case you need a MySQL schema transferred from one host to another and the schema names differ, you can ran into problems with a standard MySQL dump. Use the following statement to create a schema dump that contains all table and view definitions as well as all stored procedures without a reference to the […]

Read the complete article »