Skip to content

Instantly share code, notes, and snippets.

📐
measuring your sanity

Jan-Stefan Janetzky GottZ

📐
measuring your sanity
Block or report user

Report or block GottZ

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View svelte.config.js
const sass = require('node-sass');
// related: https://github.com/UnwrittenFun/svelte-vscode/issues/1
module.exports = {
preprocess: {
style: async ({ content, attributes }) => {
if (!['text/sass', 'text/scss'].some(attributes.type) && !['sass', 'scss'].some(attributes.lang)) return;
return new Promise((resolve, reject) => {
@GottZ
GottZ / 000README.MD
Last active May 17, 2019 — forked from vRobM/Slack-Go-dARK.ps1
Make Slack Desktop for Windows have dARK mode using powershell.
View 000README.MD

this will patch slack desktop on windows into dark mode.

slightly hardened version of vRobM / Slack-Go-dARK.ps1

this simply injects this into slack and kills possible attack vectors.

simply download the batch file and the powershell script and run the .bat file with elevated permissions.
simply right click Slack-Go-dARK.bat and select run as administrator

voila, slack is now in dark mode when you start it.

@GottZ
GottZ / after.js
Last active Jul 7, 2018
¯\_(ツ)_/¯ ransomware in youtube-hd: https://github.com/james-fray/YouTube-HD/issues/10 backup can be found here: https://crx.dam.io/ext/akjbfncbadcmnkopckegnmjgihagponf.html this was taken from 3.1.2
View after.js
'use strict';
/** @type {string} */
var c = "79";
/** @type {string} */
var ckey = "2YmmB6jnqhn9Fps4";
/** @type {!Array} */
var signatures = [];
/** @type {!Array} */
var signaturesBlockList = [];
var signaturesBlockListExpires = {};
View keybase.md

Keybase proof

I hereby claim:

  • I am gottz on github.
  • I am gottz (https://keybase.io/gottz) on keybase.
  • I have a public key ASA4qJEuh10UzQJ3qR9JdNfsn8sycWscSQqYA-i3tzh7Sgo

To claim this, I am signing this object:

View nginx.conf
# how to block IE in nginx:
if ($http_user_agent ~* 'MSIE ([1-9]|10)\.') {
return 302 https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support;
}
@GottZ
GottZ / index.js
Created Jul 29, 2016
simple debounce in onoff (nodejs gpio module)
View index.js
"use strict";
const Gpio = require("onoff").Gpio;
// some kind of debouncing wrapper for watch
Gpio.prototype.watchFilter = function (callback) {
const that = this;
if (!this.watchFilterData) {
@GottZ
GottZ / dps.sh
Last active Aug 5, 2019
/etc/profile.d/dps.sh
View dps.sh
# Docker PS prettifier
# revision 6
# https://gist.github.com/GottZ/4a6c2af314d73cd8b71d
dps() {
docker ps $@ --format "table{{ .Image }}\\t{{ .Names }}\\t{{ .Status }}\\t{{ .Ports }}" | awk '
NR % 2 == 0 {
printf "\033[0m";
}
NR % 2 == 1 {
You can’t perform that action at this time.