Add all files for staging:
git add -A
Commit all changes that are staged:
git commit -m "some message"
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Web.Http; | |
| using System.Web; | |
| namespace App.controller | |
| { |
| npm config set strict-ssl false |
| app.directive('currency', function () { | |
| return { | |
| require: 'ngModel', | |
| link: function(elem, $scope, attrs, ngModel){ | |
| ngModel.$formatters.push(function(val){ | |
| return '$' + val | |
| }); | |
| ngModel.$parsers.push(function(val){ | |
| return val.replace(/^\$/, '') | |
| }); |
| unity.RegisterTypes(Assembly.GetExecutingAssembly().ExportedTypes, WithMappings.FromMatchingInterface, WithName.Default); |
| lsof -i :{PORT_NUMBER} | |
| kill -TERM {PID} |
| // some.service.ts | |
| public async getData(): Promise<SomeType> { | |
| try { | |
| return await this.http.get<SomeType>("api/some/url") | |
| .toPromise() | |
| } catch (error) { | |
| this.handleError(error); | |
| return null; |
Creating a proxy
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=[LOCAL_PORT] connectaddress=[REMOTE_SERVER_NAME] connectport=[REMOTE_SERVER_PORT]
Delete the proxy
netsh interface portproxy delete v4tov4 listenport=[LOCAL_PORT] listenaddress=0.0.0.0
Show All Proxies
netsh interface portproxy show all
Removing console logs
^.*console\.log\(.*\).*\n
alias gofolder='cd "c:/Program Files/Some Folder"'
alias gitlogjira="git log --pretty=oneline | grep -e '[A-Z]\+-[0-9]\+' -o | sort -u"
alias tree='cmd //c tree //a'
alias gitlog="git log --pretty --oneline"