ctrl + b c
ctrl +b &
ctrl + b x
// step one: | |
let link = JSON.parse(document.querySelector('.w-json-ld').textContent)["@id"]; | |
console.log('link: ', link) | |
window.open(link, '_target=blank'); | |
// step two: | |
let link = document.querySelectorAll('script')[4].getInnerHTML().split('https://')[1].split('.bin')[0]; | |
window.location.href = 'https://'+link+'.mp4'; | |
// step three: |
// get url | |
let url = document.querySelector('body > script').text.split('\"url\":\"')[10].split('.mp4')[0] + '.mp4'; | |
// open in new tab | |
window.open(url); | |
// ** Copy link and run in your terminal | |
wget -c 'your-link' |
// disable | |
window.addEventListener('contextmenu', function (e) { | |
e.preventDefault(); | |
}, false); | |
// enable | |
document.addEventListener('contextmenu', function (e) { | |
e.stopPropagation(); | |
}, true); |
/** GET KEYS REGISTERED IN THE PANEL */ | |
const getAppConfig = async (app: string) => { | |
try{ | |
return (await axios({ | |
url: `/_v/${app}`, | |
headers:{ | |
'Content-Type': 'application/json', | |
Accept: 'application/json', | |
} | |
})).data; |
export const baseURL = 'https://api.linximpulse.com'; | |
/** | |
* REQUIRED | |
* apiKey | |
* secretkey | |
* @param name - Page Name | |
* @param source - App, Desktop, Mobile.. | |
* @param dummy - DevMode? | |
* @example &name=home&source=desktop&deviceId=123&dummy=true&homologation=true&showOnlyAvailable=true |
/* Autocomplete */ | |
interface ISearchAutocomplete{ | |
queries: Array<IQueries> | |
products: Array<IProducts> | |
} | |
interface IProducts{ | |
id: string | |
name: string | |
price: number |
## https://askubuntu.com/questions/730754/how-do-i-show-the-git-branch-with-colours-in-bash-prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ ' | |
fi |