Skip to content

Instantly share code, notes, and snippets.

View sc0rp10n-py's full-sized avatar
😎

Pragyan sc0rp10n-py

😎
View GitHub Profile
@sc0rp10n-py
sc0rp10n-py / Github Webhook Tutorial.md
Created May 23, 2021 20:04 — 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
@sc0rp10n-py
sc0rp10n-py / openinbrowser.py
Created January 2, 2021 18:16 — forked from hakluke/openinbrowser.py
Little Python script to open a list of URLs from a file in browser tabs, n tabs at a time
#! /usr/bin/python3
import webbrowser, sys
if len(sys.argv) < 3:
print("Usage: openinbrowser.py ./urls.txt 20")
quit()
f = open(sys.argv[1])
tabs = int(sys.argv[2])
counter = 1
@sc0rp10n-py
sc0rp10n-py / gist:414d847a6bc46545708e86d4b09814da
Created April 22, 2020 03:41 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>