ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
sudo apt install espeak
| <template> | |
| <i class="base-icon" :class="iconClass" :style="iconStyle"> | |
| <i v-for="n in paths" :class="`path${n}`" :key="icon + n"></i> | |
| </i> | |
| </template> | |
| <script> | |
| import './icons/style.scss' | |
| import icons from './icons.json' |
| <div class="item"></div> | |
| <style lang="scss"> | |
| .item { | |
| position: relative; | |
| @include padding_right_rtl(5px); | |
| @include rtl('right', 0, 0, 'left') | |
| } | |
| </style> |
| export function getClosestVueInstance (elm) { | |
| if (!elm) return; | |
| const parentNode = elm.parentNode; | |
| const vueInstance = parentNode?.__vue__; | |
| return vueInstance ?? getClosestVueInstance(parentNode); | |
| } |
| alias גררר="replace_hebrew_with_latin" | |
| replace_hebrew_with_latin() { | |
| previous_command=$(history | tail -n 1 | sed 's/^[ ]*[0-9]*[ ]*//') | |
| latin_command=$(echo "$previous_command" | tr 'פםןוטארק׳/ףךלחיעכגדשץתצמנהבסז' 'poiuytrewq;lkjhgfdsa.,mnbvcxz') | |
| # Display the translated command | |
| echo "Translated Command: $latin_command" | |
| # Ask for confirmation before executing | |
| echo "Do you want to execute this command? [Press Enter again]" |
Server-Sent Events (SSE) are commonly used in real-time applications where the server needs to push updates to the client.
Here are a few use cases:
| javascript: window._ticketDesc = document.querySelector('h1[data-testid="issue.views.issue-base.foundation.summary.heading"]').innerText.split('-')[0].trim().toLowerCase().replaceAll(' ', '-'); window._ticketId = document.querySelector('div[data-testid="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]').innerText.toLowerCase(); alert(`${window._ticketId}/` + `${window._ticketDesc}`.replace(/(\-|\:)+$/mg, '').replace(/[\W_]+/mg, '-').substr(0,30)); |
The export-aws-to-pulumi.sh script is a utility for importing AWS resources into Pulumi. It supports importing resources from multiple AWS regions and of multiple types, including EC2 instances, S3 buckets, RDS instances, and VPCs.