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
Yes, absolutely — you can **revert a problematic pull request (PR)** from `dev` without rewriting history. Here's how: | |
--- | |
## ✅ Option 1: Revert the Entire PR Using `git revert -m` | |
If the PR was merged using a **merge commit** (the default for GitHub/GitLab), you can revert the whole PR cleanly with: | |
```bash | |
git checkout dev |
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
app.use((req, res, next) => { | |
res.status(404).send('<h1>404!! Page not found</h1>'); | |
}) | |
// Note that there is not path and the status method that define the status code of the respond. |
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
// index.js | |
app.use((req, res, next) => { | |
res.setHeader('Access-Control-Allow-Origin', '*'); | |
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET, POST, PUT, PATCH, DELETE'); | |
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization'); | |
next(); | |
}); |
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
NumberInt(number) | |
// example | |
NumberInt(15) |
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
use dataBaseName |
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
show dbs |
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
div | |
&::-webkit-scrollbar-track | |
-webkit-box-shadow inset 0 0 6px rgba(0,0,0,0.3) | |
background-color #F5F5F5 | |
&::-webkit-scrollbar | |
width 6px | |
background-color #F5F5F5 | |
&::-webkit-scrollbar-thumb | |
background-color #f03d37 | |
border-radius 6px |
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
Need a quick, easy and free way of cleaning up a video’s audio from background noise ? Follow the steps below to remove background audio from videos. | |
First get and install the tools: | |
FFMPEG. | |
SoX – Sound eXchange. | |
Then clean your noise! | |
Split the audio and video streams into 2 seperate files: | |
The VIDEO stream: ffmpeg -i input.mp4 -vcodec copy -an tmpvid.mp4 |
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
<style lang="stylus"> | |
.clarin-365-card__description | |
min-height 34px | |
font-size 13px | |
font-weight 300 | |
line-height 1.31 | |
color #999 | |
multiline-ellipsis(2,34px) // Gloabl stylus method | |
</style> |
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
netstat -nap|grep 3000 | |
# returns list process using port 3000 last column show id of this process | |
# tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 11249/node | |
# tcp 0 0 127.0.0.1:3000 127.0.0.1:35804 ESTABLISHED 11249/node | |
# tcp 0 0 127.0.0.1:35804 127.0.0.1:3000 ESTABLISHED 2392/chrome --type= | |
# tcp 0 0 127.0.0.1:3000 127.0.0.1:35746 ESTABLISHED 11249/node | |
# tcp 0 0 127.0.0.1:35878 127.0.0.1:3000 ESTABLISHED 2392/chrome --type= | |
# tcp 0 0 127.0.0.1:3000 127.0.0.1:35878 ESTABLISHED 11249/node | |
# tcp 0 0 127.0.0.1:35746 127.0.0.1:3000 ESTABLISHED 2392/chrome --type= |