Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile
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
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.
// 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();
});
NumberInt(number)
// example
NumberInt(15)
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
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
<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>
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=