Skip to content

Instantly share code, notes, and snippets.

View deathbeam's full-sized avatar

Tomas Slusny deathbeam

  • Slovakia
  • 07:35 (UTC +02:00)
View GitHub Profile
@ericbn
ericbn / .vimrc
Last active June 30, 2025 23:48
Vim Powerline-like status line without the need of any plugin
" Statusline (requires Powerline font)
set statusline=
set statusline+=%(%{&buflisted?bufnr('%'):''}\ \ %)
set statusline+=%< " Truncate line here
set statusline+=%f\ " File path, as typed or relative to current directory
set statusline+=%{&modified?'+\ ':''}
set statusline+=%{&readonly?'\ ':''}
set statusline+=%= " Separation point between left and right aligned items
set statusline+=\ %{&filetype!=#''?&filetype:'none'}
set statusline+=%(\ %{(&bomb\|\|&fileencoding!~#'^$\\\|utf-8'?'\ '.&fileencoding.(&bomb?'-bom':''):'')
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active July 15, 2025 16:16
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
@Nightfirecat
Nightfirecat / runelite-blog.sh
Last active November 28, 2019 08:22
runelite.net blog post generator
#!/bin/bash
# Exit upon errors
set -e
description() {
echo 'Creates a new branch and file structure for the weekly release blog post in the runelite.net repository'
}
helpdoc() {
echo