This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.
| //http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
| Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
| /* ------------------------------------------------------------------------ */ | |
| /* highlight the menu item labeled "blog" if not on static pages */ | |
| function add_custom_class($classes=array(), $menu_item=false) { | |
| if ( !is_page() && 'Blog' == $menu_item->title && ! in_array( 'current-menu-item', $classes ) ) { | |
| $classes[] = 'current-menu-item'; | |
| } | |
| return $classes; | |
| } | |
| add_filter('nav_menu_css_class', 'add_custom_class', 100, 2); |
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |
Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.
To get started, install pass and generate a keypair.
$ brew install pass
$ gpg --gen-key
$ gpg --list-keys| # | |
| # weechat.conf -- weechat v0.4.3 | |
| # | |
| [debug] | |
| [startup] | |
| command_after_plugins = "" | |
| command_before_plugins = "" | |
| display_logo = on |
Warning
These guidelines haven't been updated since 2016. Learn more…
Table of contents
This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.
In that post I talked about 3 main reasons for moving from require.js to webpack:
- Common JS support
- NPM support
- a healthy loader/plugin ecosystem.
Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.
A triangle workflow involves an upstream project and a personal fork containing a development branch of the project.
This configuration makes git pull merge changes from the upstream but git push send local commits to the personal fork.
However those config settings only work on relatively recent versions of git; 1.7.9 doesn't support the required remote.pushdefault config setting so you will have to explicitly tell git push which remote to push to.
This gist does not attempt to explain exactly what these commands do, it's intended as a cheat-sheet/reminder.