This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm list | awk '{print $NF}' | sort | uniq | wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function one() { | |
| return 1; | |
| } | |
| const onePromise = one(); | |
| console.log(`one: ${onePromise}`); | |
| onePromise.then(data => console.log(`one data: ${data}`)); | |
| async function nothing() { | |
| console.log('in nothing'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log --pretty=tformat:%s <commit>..<commit> | cut -f1 -d' ' | cut -f1 -d':' | sort | uniq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Replace all non commented DbType entries with new <DBTYPE> | |
| :%s/^\([^#].*\.DbType\)=.*/\1=<DBTYPE>/ | |
| # Replace all non commented DbName entries with new <DBNAME> | |
| :%s/^\([^#].*\.DbName\)=.*/\1=<DBNAME>/ | |
| # Replace all non commented DbSchema entry with WPSD_<UPPERCASE_DATABASE> | |
| :%s/^\([^#].*\)\.DbSchema=.*/\1.DbSchema=WPSD_\U\1/ | |
| # Replace all non commented DataSourceName entry with wpsdDS_<database> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select i.name | |
| from sysindexes i, sysobjects o | |
| where o.name = @table_name | |
| where i.id = o.id | |
| and i.status2 != 0 | |
| and i.status2 != 512 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select i.name | |
| from sysindexes i, sysobjects o | |
| where o.name = @table_name | |
| and i.id = o.id | |
| and i.status2 != 0 | |
| and i.status2 != 512 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -vX POST <url> -F <arraykey>[0]=<value0> -F <arraykey>[1]=<value1> -F <arraykey>[2]=<value2> -F <key>=@<filename> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log --pretty=format:'%h : %s' --graph --all |