Skip to content

Instantly share code, notes, and snippets.

View ruggertech's full-sized avatar

Erez Weiss ruggertech

  • tel aviv, israel
View GitHub Profile
@ruggertech
ruggertech / .Vrome
Last active January 17, 2017 10:17
set disablesites=https://mail.google.com, http://editor.swagger.io, https://www.youtube.com
@ruggertech
ruggertech / Dark Theme Whatsapp Web.user.js
Last active November 1, 2020 19:00
Using this script with TamperMonkey you can have your whatsapp web turned into an un-noticeable dark theme app
// ==UserScript==
// @name Dark Theme Whatsapp Web
// @namespace http://userstyles.org
// @description My custom theme for Whatsapp Web. With orange and dark shades.
// @author David Jiménez
// @homepage https://userstyles.org/styles/109575
// @include https://web.whatsapp.com/
// @run-at document-start
// @version 0.20170512183823
// ==/UserScript==
/**
* add this code to the file ssb-interop.js
* you can find it by going to Applications -> Slack
* -> right click "show package content" -> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static
*/
document.addEventListener('DOMContentLoaded', function() {
let tt__customCss = `
body,
.channel_header,
body, .channel_header, # footer, .channel_title_info, # channel_topic_text {
background: rgb(0, 43, 54);
}
.c - message__body {
color: rgb(153, 174, 177);
}
# team_menu, .p - channel_sidebar {
background: #023f4e !important;
}
.c-presence--active {
/**
* add this code to the file ssb-interop.js
* you can find it by going to Applications -> Slack
* -> right click "show package content" -> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static
*/
var cssURI = 'https://gist.githubusercontent.com/ruggertech/75b250418eaf6fa6a801ce897208f6c4/raw/a222b16c5a5d7d732624d8d9cd9c3ef17aa3e40f/slack-theme.css';
$.get(cssURI).then(function(css) {
$('<style />').text(css).appendTo('body')
});
@ruggertech
ruggertech / toggleMacProxy.sh
Created May 23, 2019 11:03
turn free proxy on, using mac command line
#!/bin/sh
SERVICE="Thunderbolt Ethernet Slot 1" # or "Wi-Fi"
echo $PROXYHOST
while [[ $# > 0 ]]
do
case "$1" in
on)
PROXYHOST="$(curl "http://pubproxy.com/api/proxy?limit=1&format=txt&type=socks5&https=true&google=true")"