Skip to content

Instantly share code, notes, and snippets.

View adammcfadden's full-sized avatar

Adam McFadden adammcfadden

View GitHub Profile
$slackBaseDir = "$env:LocalAppData\Slack"
$installations = Get-ChildItem $slackBaseDir -Directory | Where-Object { $_.Name.StartsWith("app-") }
$version = $installations | Sort-Object { [version]$_.Name.Substring(4) } | Select-Object -Last 1
Write-Output "Select highest intalled Slack version: $version";
$modAdded = $false;
$customContent = @'
// slack-dARK-mode |-)
@adammcfadden
adammcfadden / slack-dark-mode.css
Last active September 27, 2018 17:21
css override for slack dark mode
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
This file has been truncated, but you can view the full file.
.sf_envelope_front {
from __future__ import print_function
import boto3
import os
from urllib2 import urlopen
from botocore.client import Config
GSHEETS = os.environ['GSHEETS']
ACCESS_KEY_ID = os.environ['ACCESS_KEY_ID']
ACCESS_SECRET_KEY = os.environ['ACCESS_SECRET_KEY']
@adammcfadden
adammcfadden / font-loader.vue
Last active June 26, 2021 10:18
Vue component for loading minimal fonts with webfontloader
// Vue component for loading minimal fonts with webfontloader
<template>
</template>
<script>
//https://github.com/typekit/webfontloader
import WebFontLoader from 'webfontloader';
export default {