Skip to content

Instantly share code, notes, and snippets.

View sunrise2575's full-sized avatar
🎯
Focusing

Heeyong Yoon sunrise2575

🎯
Focusing
View GitHub Profile
// paste into Google Chrome DevTools
function simulateMouseClick(targetNode) {
function triggerMouseEvent(targetNode, eventType) {
var clickEvent = document.createEvent('MouseEvents');
clickEvent.initEvent(eventType, true, true);
targetNode.dispatchEvent(clickEvent);
}
["mouseover", "mousedown", "mouseup", "click"].forEach(function(eventType) {
triggerMouseEvent(targetNode, eventType);
@sunrise2575
sunrise2575 / iptables-reset.sh
Created November 25, 2021 15:39
iptables / ip6tables reset default state
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
ip6tables -P INPUT ACCEPT
ip6tables -P FORWARD ACCEPT
ip6tables -P OUTPUT ACCEPT
@sunrise2575
sunrise2575 / node-exporter-install.sh
Last active November 25, 2021 16:40
Prometheus Node Exporter 설치 bash 한방 스크립트 (Ubuntu / CentOS 겸용)
DIST=$(
. /etc/os-release
echo $ID
)
if [[ $DIST == "ubuntu" ]]; then
VERSION=$(lsb_release -r | awk '{print $2}' | awk -F . '{print $1$2}')
apt install prometheus-node-exporter -y
systemctl --now enable prometheus-node-exporter
systemctl --now start prometheus-node-exporter
@sunrise2575
sunrise2575 / main.md
Created August 4, 2021 06:12
Code snippet collection

코드 예시 모음

@sunrise2575
sunrise2575 / introduction.md
Last active June 20, 2023 13:20
Graph Processing and GNN
@sunrise2575
sunrise2575 / PM1725a.md
Last active September 3, 2020 01:59
How to setup multiple Samsung 1725a NVMe PCIe SSD 6.4TB on Power9 (AC922; 8335-GTH)

How to setup multiple Samsung PM1725a NVMe PCIe SSD 6.4TB on Power9 (AC922; 8335-GTH)

Environment

  • Machine: IBM AC922
  • SSD: Samsung PM1725a NVMe PCIe SSD (6.4TB), Firmware version: MN12MN12
  • OS: Ubuntu 18.04 ppc64le

Note

  • You should work on "18.04" (kernel version = 4.x)
  • Do not use "20.04" or "18.04 HWE" (kernel version >= 5.x)