Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional_commit_messages.md
Last active May 10, 2024 04:09
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@jcberthon
jcberthon / networkmanager-wifi-powersave.md
Last active April 22, 2024 14:33
NetworkManager Wi-Fi powersaving configuration

NetworkManager WiFi Power Saving

NetworkManager supports WiFi powersaving but the function is rather undocumented.

From the source code: wifi.powersave can have the following value:

  • NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
  • NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
  • NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
@max-mykhailenko
max-mykhailenko / # Sublime Emmet JSX Reactjs.md
Last active November 25, 2022 23:25
Sublime text 3. Enable Emmet in JSX files with Sublime React plugin

This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/

Thanks, @wesbos

Problem

  • Using emmet in jsx files
  • Emmet expands text when js autocomplete needed
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 7, 2024 01:27
A badass list of frontend development resources I collected over time.
@maxlibin
maxlibin / gist:5771629
Last active December 18, 2015 10:49
Asia country list in select field
<select name="countries">
<option selected="selected" disabled="disalbed">Select Your Country</option>
<option value="china">China</option>
<option value="India">India</option>
<option value="Indonesia">Indonesia</option>
<option value="Pakistan">Pakistan</option>
<option value="Bangladesh">Bangladesh</option>
<option value="Japan">Japan</option>
<option value="Philippines">Philippines</option>
@straps
straps / simple-crawler.js
Created June 7, 2013 08:00
Based on the fantastic node-crawler plugin ( https://github.com/sylvinus/node-crawler ) Requires: npm install crawler Usage: node simple-crawler.js URL EXTENSIONS Example: node simple-crawler.js http://www.omgubuntu.co.uk/ jpg,png Find links for every page and subpages in URL and generates an URL list you can copy to a file and download with wge…
var Crawler = require("crawler").Crawler;
//console.argv=['node', 'app.js', url, ext]
if (process.argv.length < 4) {
console.log('Usage: ' + process.argv[0] + ' ' + process.argv[1] + ' URL EXT');
console.log('Example: ' + process.argv[0] + ' ' + process.argv[1] + ' http://www.omgubuntu.co.uk/ jpg,png');
process.exit(1);
}
var url = process.argv[2],
@peterwilsoncc
peterwilsoncc / livereload.php
Created March 22, 2012 02:31
Live reload WordPress extension
<?php
/*
Plugin Name: LiveReload
Description: Adds the JavaScript for LiveReload to a WordPress site
Version: 0.0.0.0.1alpha
Author: Peter Wilson
Author URI: http://peterwilson.cc/
*/
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000