This application collects and holds no personal information whatsoever.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create an uber JAR of all the runtime dependencies of a package | |
task uberJar(type: Jar) { | |
from { | |
// build flavour is needed for Android projects, otherwise it's just runtimeClasspath | |
configurations.releaseRuntimeClasspath.collect { original -> | |
// leave folders alone | |
if (original.isDirectory()) { | |
return original | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.uber.com/blog/rss/ | |
https://engineering.fb.com/feed/ | |
https://medium.com/feed/airbnb-engineering | |
https://github.blog/category/engineering/feed/ | |
https://engineering.grab.com/feed.xml | |
https://tech.instacart.com/feed | |
https://engineering.linkedin.com/blog.rss.html | |
https://eng.lyft.com/feed/ | |
https://netflixtechblog.com/feed/ | |
https://medium.com/feed/@Pinterest_Engineering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun View.setOnHoldListener( | |
firstClickDelayMillis: Long = 250L, | |
tickDelayMillis: Long = 100L, | |
onRelease: () -> Unit = {}, | |
onTick: (Int) -> Unit | |
) { | |
val lifeCycleOwner = findViewTreeLifecycleOwner() ?: return | |
var job: Job? = null | |
// cancel this job if the lifeCycleOwner is ever paused |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://packages.ntop.org/ | |
# https://github.com/ntop/docker-ntop/commit/6600c0a49420aac78c724d93ef8c4ceab8878d52 | |
FROM debian:bullseye | |
RUN apt-get update && \ | |
apt-get -y -q install wget lsb-release gnupg libcap-dev net-tools && \ | |
wget -q https://packages.ntop.org/RaspberryPI/apt-ntop_1.0.190416-469_all.deb && \ | |
dpkg -i apt-ntop_1.0.190416-469_all.deb && \ | |
apt-get clean all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
upnpc -i -d 12345 UDP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.raspberrypi.com/documentation/computers/configuration.html#intro-to-bridged-wap | |
# https://www.maketecheasier.com/turn-raspberry-pi-into-wi-fi-bridge/ | |
------------------------------ | |
sudo nano /etc/systemd/network/bridge-br0.netdev | |
[NetDev] | |
Name=br0 | |
Kind=bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# https://rclone.org/ | |
# crontab -e: 0 1 * * 0 /path/to/rclone.sh | |
set -eo pipefail | |
RCLONE="/home/raf/bin/rclone" | |
RCLONE_CONFIG="/home/raf/.config/rclone/rclone.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function audioWatcher(eventType) | |
-- print ("Audio Event: " .. eventType) | |
target = "HD Pro Webcam C920" | |
if(eventType == "dIn ") then | |
cur = hs.audiodevice.defaultInputDevice():name() | |
if (cur ~= target) then | |
dev = hs.audiodevice.findInputByName(target) | |
if (dev ~= nil) then | |
print("Setting default input device to: " .. target) | |
dev:setDefaultInputDevice() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function caffeinateWatcher(eventType) | |
if (eventType == hs.caffeinate.watcher.systemWillSleep or | |
eventType == hs.caffeinate.watcher.systemWillPowerOff) then | |
print ("Going to Sleep...") | |
-- Execute sleep script | |
-- hs.task.new("/Users/username/scripts/on_sleep.sh", nil):start() | |
-- hs.applescript('tell application "APP_NAME" to quit') | |
elseif (eventType == hs.caffeinate.watcher.systemDidWake) then | |
print ("Waking from Sleep...") | |
-- Execute wake script |
NewerOlder