Skip to content

Instantly share code, notes, and snippets.

View shampine's full-sized avatar

Patrick Shampine shampine

View GitHub Profile
@pschichtel
pschichtel / fix_gitlab.sh
Created June 11, 2015 20:09
This bash script fixes up the repositories in gitlab after restoring a backup in a new gitlab instance
#!/bin/bash
gitlab_user="git"
if [[ "$(whoami)" == "$gitlab_user" ]]
then
echo "Searching for errors and corecting them"
else
echo "Nope, wrong user. Trying to login as $gitlab_user"
su "$gitlab_user" -c "$0"
@Chandler
Chandler / slack_history.py
Last active March 27, 2025 01:16
Download Slack Channel/PrivateChannel/DirectMessage History
print("UPDATE AUG 2023: this script is beyond old and broken")
print("You may find interesting and more up to date resources in the comments of the gist")
exit()
from slacker import Slacker
import json
import argparse
import os
# This script finds all channels, private channels and direct messages
@prologic
prologic / LearnGoIn5mins.md
Last active February 12, 2025 06:52
Learn Go in ~5mins