Skip to content

Instantly share code, notes, and snippets.

@kevincennis
kevincennis / v8.md
Last active June 26, 2025 03:09
V8 Installation and d8 shell usage

Installing V8 on a Mac

Prerequisites

  • Install Xcode (Avaliable on the Mac App Store)
  • Install Xcode Command Line Tools (Preferences > Downloads)
  • Install depot_tools
    • $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    • $ nano ~/.zshrc
    • Add path=('/path/to/depot_tools' $path)
@chrisisbeef
chrisisbeef / best.ps1
Last active June 26, 2025 02:30
Bitdefender GravityZone Remote Installation Scripts (Works with JumpCloud Command-Runner Agent)
# Insert your company-hash here. When you get the download link, this is the long alpha-numeric scring
# that comes after setupdownloader_ in the filename.
# Do not include the square brackets (but do include the = if there is one).
$CompanyHash = ""
### Modify below this line at your own risk!
# If it's already installed, just do nothing
$Installed = Get-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" |
Where-Object { $_.DisplayName -eq "Bitdefender Endpoint Security Tools" }
#!/bin/bash
echo "Enter the time for your alarm (HH:MM:SS, 24-hour format):"
read alarm_time
while true; do
current_time=$(date +%H:%M:%S)
if [[ "$current_time" == "$alarm_time" ]]; then
echo "Wake up! It's time!"
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active June 26, 2025 02:29
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여

@rlychrisg
rlychrisg / tmux_panefocus.sh
Created June 25, 2025 18:37
quickly cycle between last pane across all windows of a session. also add a little flash when changing focus to a new pane.
#!/bin/bash
## about
# this does two things 1) provides a visual indicator when moving between panes
# 2) cleverly cycles between the previous pane on all windows across the session.
# NOTE this script does echo out every single tmux focus switch to a file in /tmp/
# so unless you turn your machine off every night you'll want to find some way of
# dealing with that.
@Suleman-Elahi
Suleman-Elahi / mxroute_email_accounts.py
Last active June 26, 2025 02:15
A script to bulk create email accounts on MXroute via API. Sleep is not really necessary so can turn off. Use the users.csv file to create the CSV file with information of user to be created, quota must be given in MB. Just replace your username, password, server URL and good to go.
import requests
import csv
import time
server_login = 'YourUserName'
server_pass = 'YourPassword/LoginKey'
endpoint_url = 'AddSevrerURLHereWithPort' + '/CMD_EMAIL_POP' #Change the first part to he URL of the server you recoeved after sign up.
headers={"Content-Type": "application/x-www-form-urlencoded",}
@ErikFontanel
ErikFontanel / filter-youtube-domains.sh
Last active June 26, 2025 02:11
Pi-hole Youtube ad blocking
#!/bin/sh
# This script will fetch the Googlevideo ad domains and append them to the Pi-hole block list.
# Run this script daily with a cron job (don't forget to chmod +x)
# More info here: https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253/136
# File to store the YT ad domains
FILE=/etc/pihole/youtube.hosts
# Fetch the list of domains, remove the ip's and save them
curl 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com' \
@ProGM
ProGM / arel_cheatsheet_on_steroids.md
Last active June 26, 2025 02:11
Arel cheatsheet on Steroids

Arel Cheatsheet on Steroids

A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.

Tables

posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord

Table alias

@lelinhtinh
lelinhtinh / type-vietnamese-on-ubuntu.md
Last active June 26, 2025 01:55
Gõ Tiếng Việt trong Ubuntu

Gõ Tiếng Việt trong Linux

Ghi chú cách dùng IBus Bamboo để gõ Tiếng Việt mà không bị lỗi gạch chân như các bộ gõ khác.

Cài đặt

sudo add-apt-repository ppa:bamboo-engine/ibus-bamboo
sudo apt-get update
sudo apt-get install ibus ibus-bamboo --install-recommends
@0xBEEB
0xBEEB / WiiUNotes.md
Last active June 26, 2025 01:52
What I wish I knew going into Wii U hacking

What I wish I knew going into Wii U hacking

For the past six months I've been learning about hacking my Wii U. I could have completed this project in a weekend, but sometimes I get an itch to go further.

My goal has been to have the ultimate couch console where friends can play video games in the same place in front of the same screen (plus gamepad screen). After that first weekend I was able to play homebrew, and make game backups to play. It even came with new software to use PS3 controllers on the console as pro controllers. My console had become really cool, but it wasn't perfect. So, I began working on getting it from 75% to perfect to 95% perfect (see unfixed cons below).

The documentation for that first 75% is really good and simple, but it's so simple the learning curve to do more advance things is steep. The research involved included digging through decade old forum posts, out of date wikis, finding files in abandoned MEGA drive downloads, reading source code in a dozens of repos, and lots of t