Skip to content

Instantly share code, notes, and snippets.

View kornelski's full-sized avatar
💤
Please be patient, it will take a while

Kornel kornelski

💤
Please be patient, it will take a while
View GitHub Profile
@kornelski
kornelski / sparklecheck.sh
Created February 14, 2016 00:44
Find apps with unsafe Sparkle versions
#!/bin/bash
set -o pipefail
IFS=$'\n'
REPORT=''
checkapp() {
local APPPATH=$1
local PLIST="$APPPATH/Contents/Info.plist"
local SPARKLEPLIST="$APPPATH/Contents/Frameworks/Sparkle.framework/Resources/Info.plist"
local SPARKLEBIN="$APPPATH/Contents/Frameworks/Sparkle.framework/Sparkle"
@kornelski
kornelski / Dockerfile
Last active February 10, 2023 14:33
Minimal docker image for building x86-64 .deb packages from Rust/Cargo on Apple Silicon (M1/M2) Mac host
FROM rust:1-slim-bullseye
RUN rustup target add x86_64-unknown-linux-gnu
RUN dpkg --add-architecture amd64
RUN apt-get update; apt-get install build-essential crossbuild-essential-amd64 pkg-config libssl-dev:amd64 libsqlite3-dev:amd64 -y
RUN cargo install cargo-deb
ENV HOST_CC=gcc
ENV CC_x86_64_unknown_linux_gnu=/usr/bin/x86_64-linux-gnu-gcc
# now copy your sources and run `cargo deb --target x86_64-unknown-linux-gnu`
gulp.task('css-browsersync', function() {
return gulp.src(["*.scss"])
.pipe(sass().on('error', function(err) {
console.error(err.message);
browserSync.notify(err.message, 3000); // Display error in the browser
this.emit('end'); // Prevent gulp from catching the error and exiting the watch process
}))
.pipe(gulp.dest("public/"))
.pipe(browserSync.stream());
});