Skip to content

Instantly share code, notes, and snippets.

View mswieboda's full-sized avatar

Matt Swieboda mswieboda

View GitHub Profile
@mswieboda
mswieboda / Theming-Slack-OSX.md
Last active December 3, 2017 23:45 — forked from DrewML/Theming-Slack-OSX.md
Theming Slack for OSX 🕶️

Theming Slack for OSX

So, you love Slack, but you hate applications with large white backgrounds? Why not use Dark Mode! 🕶️

Unfortunately, Slack does not have a Dark Mode, although it's on their list of possibilities.

But, don't fret - there is a solution! Because the slack native desktop apps are just wrappers around a web app, we can inject our own CSS to customize the application to our liking.

(I take no credit for this exploit, graciously found via @DrewML https://gist.github.com/DrewML/0acd2e389492e7d9d6be63386d75dd99 and suggestions by @bradens, @jouni, @gkostov and others).

@mswieboda
mswieboda / slack-dark-h4x0r-theme.css
Last active June 27, 2017 21:39 — forked from bradens/slack-dark-theme.css
Dark h4x0r Slack Theme
a .dense_meta.msg_inline_file_preview_toggler .msg_inline_file_preview_title, .dense_meta.msg_inline_img_toggler .msg_inline_file_preview_title, .meta.msg_inline_file_preview_toggler .msg_inline_file_preview_title, .meta.msg_inline_img_toggler .msg_inline_file_preview_title,
.dense_meta.msg_inline_file_preview_toggler .msg_inline_file_preview_title, .dense_meta.msg_inline_img_toggler .msg_inline_file_preview_title, .meta.msg_inline_file_preview_toggler .msg_inline_file_preview_title, .meta.msg_inline_img_toggler .msg_inline_file_preview_title {
color: #66FFFF !important;
/* color: #80FF00 !important; */
/* text-decoration: underline !important; */
}
a:active, a:focus, a:hover {
color: #66CCFF !important;
@mswieboda
mswieboda / SmoothFollow.cs
Created November 28, 2017 00:26 — forked from Hamcha/SmoothFollow.cs
Stupid Unity scripts : "Smooth Follow" from Standard Assets
// Smooth Follow from Standard Assets
// Converted to C# because I fucking hate UnityScript and it's inexistant C# interoperability
// If you have C# code and you want to edit SmoothFollow's vars ingame, use this instead.
using UnityEngine;
using System.Collections;
public class SmoothFollow : MonoBehaviour {
// The target we are following
public Transform target;
@mswieboda
mswieboda / tap-to-click-toggle.scpt
Created July 11, 2020 03:18
macOS: Quickly toggle "Tap to click" for the Trackpad by using AppleScript
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
delay 1
click the menu item "Trackpad" of the menu "View" of menu bar 1
delay 1
click the radio button "Point & Click" of the first tab group of window "Trackpad"
click checkbox 3 of tab group 1 of window "Trackpad"