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
import difflib | |
import io | |
def generate_unified_diff(file1_path, file2_path, output_path): | |
with open(file1_path, 'r') as file1, open(file2_path, 'r') as file2: | |
lines1 = file1.readlines() | |
lines2 = file2.readlines() | |
diff = difflib.unified_diff(lines1, lines2, fromfile='config_old.txt', tofile='config_new.txt') | |
string_buffer = io.StringIO() |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: pulse-audio-config | |
namespace: gow | |
data: | |
default.pa: |- | |
.fail | |
load-module module-null-sink sink_name=sunshine | |
set-default-sink sunshine |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cf-ddns-updater | |
namespace: kube-system | |
labels: | |
app.kubernetes.io/name: cf-ddns-updater | |
app.kubernetes.io/instance: cf-ddns-updater | |
data: |
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
<# | |
The command to run, built from the raw link of this gist | |
Win+R | |
iexplore http://boxstarter.org/package/url?<RAW GIST LINK> | |
OR (if you don't like the way the web launcher force re-installs everything) |
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
Rclone Prometheus memory stats |
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
FROM phusion/baseimage:latest | |
ARG GO_SHA256=fb26c30e6a04ad937bbc657a1b5bba92f80096af1e8ee6da6430c045a8db3a5b | |
ENV GOLANG_VERSION=1.11.4 \ | |
GOPATH=/root/go \ | |
GOROOT=/usr/local/go | |
RUN apt-get update \ | |
&& apt-get install -y build-essential git-core wget curl zip vim ca-certificates |
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
'use strict'; | |
var gulp = require('gulp'), | |
argv = require('yargs').argv, | |
tap = require('gulp-tap'); | |
var config = require('./config'); | |
module.exports = { | |
setProperty: setProperty, |
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
package org.kraven.repository; | |
import org.kraven.domain.DeviceData; | |
import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | |
/** | |
* Spring Data JPA repository for the DeviceData entity. | |
*/ | |
@SuppressWarnings("unused") | |
public interface DeviceDataRepository extends JpaRepository<DeviceData,Long>, JpaSpecificationExecutor<DeviceData> { |
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
'use strict'; | |
var gulp = require('gulp'), | |
util = require('./utils'), | |
url = require('url'), | |
browserSync = require('browser-sync'), | |
proxy = require('proxy-middleware'); | |
var config = require('./config'); |
NewerOlder