See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
# Assuming using fish shell | |
find ./ -iname '*.flac' | xargs -I '{}' basename '{}' '.flac' | xargs -I '{}' ffmpeg -i '{}'.flac -c:a aac -b:a 320k '{}'.m4a |
function replaceHome($pathArray) { | |
# Check whether the first three paths are equal to HOME | |
# If it is, it substitutes it for ~ | |
# Change this accordingly, if your home path is more than three | |
# paths long. | |
$splitChar = [System.IO.Path]::DirectorySeparatorChar | |
if ( ($pathArray.Length -gt 2) -and | |
(($pathArray[0..2] -join $splitChar) -eq $HOME)) { | |
@("~") + $pathArray[3..$pathArray.Length] | |
} |
See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import MyComponent from '../src/my-component'; | |
const wrapper = shallow(<MyComponent/>); | |
describe('(Component) MyComponent', () => { | |
it('renders without exploding', () => { | |
expect(wrapper).to.have.length(1); | |
}); |
# npm using https for git | |
git config --global url."https://github.com/".insteadOf [email protected]: | |
git config --global url."https://".insteadOf git:// | |
# npm using git for https | |
git config --global url."[email protected]:".insteadOf https://github.com/ | |
git config --global url."git://".insteadOf https:// |
@echo off | |
rem ===================================================== | |
rem Converts a MP3 file to a M4R file using ffmpeg. | |
rem Usage: Drop a MP3 file at the top of this batch file. | |
rem ===================================================== | |
set ffmpeg_exe="C:\ffmpeg\ffmpeg-20150619-git-bb3703a-win64-static\bin\ffmpeg.exe" | |
rem %~f1 = Full File Path, with drive letter | |
rem %~p1 = Drive Letter | |
rem %~p1 = Path Only |
/* | |
// | |
// How to open iOS application using WatchKit | |
// | |
// Created by Mokhlas Hussein on 09/04/15. | |
// Copyright (c) 2015 iMokhles (Mokhlas Hussein). All rights reserved. | |
// | |
*/ | |
/******* Within the App Watch Extension *******/ |
/* | |
******************************************************************************************************************************** | |
Credits: @Jeremy | |
Posted: http://stackoverflow.com/questions/7048839/sql-server-query-to-find-all-permissions-access-for-all-users-in-a-database | |
******************************************************************************************************************************** | |
Security Audit Report | |
1) List all access provisioned to a sql user or windows user/group directly | |
2) List all access provisioned to a sql user or windows user/group through a database or application role | |
3) List all access provisioned to the public role |