For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains 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
body { | |
background-color: rgba(0, 0, 0, 0) !important; | |
margin: 0px auto; overflow: hidden; | |
} | |
.restream-embed-themes-chat-container.restream-embed-themes-chat-container_default { | |
background: transparent !important; | |
} | |
.message-item { |
This file contains 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
(function($) { | |
$(document).ready(function($) { | |
$("tr input.action-select").actions(); | |
$('<div id="show-filters" style="float: right;"><a href="#">← 필터 보기</a></p>').prependTo('div.actions'); | |
$('#show-filters').hide(); | |
$('#changelist-filter h2').html('<a style="color: white;" id="hide-filters" href="#">필터 →</a>'); | |
$('#show-filters').click(function() { | |
$('#changelist-filter').show('fast'); | |
$('#changelist').addClass('filtered'); |
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
This file contains 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
import asyncio | |
from pyppeteer import launch | |
async def main(): | |
browser = await launch( | |
options={ | |
'headless': True, | |
'args': [ | |
'--no-sandbox', |
This file contains 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
/** | |
* @desc It triggers mouse event. | |
* @param {HTMLElement} element target DOM element | |
* @param {string} type type of event | |
* @param {number} x clientX of event | |
* @param {number} y clientY of event | |
*/ | |
export function simulateEvent(element, type, x, y) { | |
const mouseEvent = new MouseEvent(type, { | |
screenX: 0, |
This file contains 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
# Create trigger file | |
touch /etc/ssh/sshd_notifier.sh | |
chmod +x /etc/ssh/sshd_notifier.sh | |
vim /etc/ssh/sshd_notifier.sh | |
#!/bin/bash | |
# /etc/ssh/sshd_notifier.sh | |
BOT_TOKEN="xxxxxx:12345678901234567890" | |
CHAT_ID="1234567890" |
This file contains 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
@media not all and (min-resolution:.001dpcm) { | |
@supports (-webkit-appearance:none) { | |
div.something.annoying { | |
line-height: 18px; | |
} | |
} | |
} |
This file contains 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
/* CONFIGURATION STARTS HERE */ | |
/* Step 1: enter your domain name like fruitionsite.com */ | |
const MY_DOMAIN = 'chann.dev'; | |
/* | |
* Step 2: enter your URL slug to page ID mapping | |
* The key on the left is the slug (without the slash) | |
* The value on the right is the Notion page ID | |
*/ |
NewerOlder