Skip to content

Instantly share code, notes, and snippets.

View tboydar's full-sized avatar
🎯
Focusing

Dar tboydar

🎯
Focusing
View GitHub Profile
@tboydar
tboydar / Github Webhook Tutorial.md
Created August 26, 2025 05:49 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@tboydar
tboydar / code-editor-rules.md
Created December 17, 2024 16:55 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@tboydar
tboydar / README.md
Created November 18, 2020 12:38 — forked from nicejade/README.md
Generate a good README

Generate a good README

Generate a good README use `npx` commmd.

# get total requests by status code
awk '{print $9}' /var/log/nginx/access.log | sort | uniq -c | sort -rn
# get top requesters by IP
awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | awk -v OFS='\t' '{"host " $2 | getline ip; print $0, ip}'
# get top requesters by user agent
awk -F'"' '{print $6}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head
# get top requests by URL
@tboydar
tboydar / _vultr-snapshot.md
Created March 29, 2019 08:12 — forked from Rhilip/_vultr-snapshot.md
Automatic snapshots using Vultr API (Python3)

Thanks to Automated Snapshots / Backups via Vultr API And this is Python3 version script used to Automatic snapshots using Vultr API


A more customizable alternative to Vultr's backup feature using Vultr API v1. Tested on Ubuntu 16.04. Run this python3 script on Anywhere to create a snapshot of VPS (which you know IP or it's subid) and rotate out the oldest snapshot(s). Use the BACKUP_TAG_PREFIX prefix field to uniquely id a set of snapshots.

Notice: You can only create 11 snapshots by default.


@tboydar
tboydar / clone-all-twitter-github-repos.sh
Created January 13, 2019 15:55 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from Feb

@tboydar
tboydar / settings.json
Created August 2, 2018 15:30 — forked from doggy8088/settings.json
Will 保哥的 VSCode 使用者設定檔
{
"explorer.openEditors.visible": 0,
"workbench.colorTheme": "Default Light+",
"workbench.iconTheme": "vscode-simpler-icons",
"workbench.sideBar.location": "right",
"editor.wordWrap": "on",
"editor.fontFamily": "'Microsoft YaHei Mono', Consolas, 'Noto Sans CJK TC Medium', 'Courier New', monospace",
"editor.fontLigatures": true,
@tboydar
tboydar / Angular 4 開發環境說明.md
Created September 22, 2017 09:42 — forked from doggy8088/Angular 18 Dev Setup.md
Angular 4 開發環境說明

Angular 4 開發環境說明

為了能讓大家能夠順利的建立起 Angular 4 開發環境,以下是需要安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]

  • Windows 7 以上版本 (更新到最新 Service Pack 版本)
  • Mac OS X 10.6 以上版本

[ 套件管理器 ( Mac OS X Only ) ]

@tboydar
tboydar / ask-question.md
Created August 29, 2017 10:14 — forked from y2468101216/ask-question.md
如何問( google )問題

分析問題

前言

如果你有在網路找過如何問問題的話,你應該會找到泛用的回答。 而這邊要討論的是如何對 Google 問問題。

會寫這篇是因為我發現很奇妙的有些工程師比我還老,但卻不太用 google,常常問一些 google 就有答案的問題。

問問題的技巧