This file contains hidden or 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
# /etc/initramfs-tools/scripts/overlay | |
# default file generated by /usr/bin/raspi-config | |
# add highlighted lines to access lower and upper filesystems | |
# Local filesystem mounting -*- shell-script -*- | |
# | |
# This script overrides local_mount_root() in /scripts/local | |
# and mounts root as a read-only filesystem with a temporary (rw) | |
# overlay filesystem. |
This file contains hidden or 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
#usage "<b>Data generation for JLCPCB Assembly service</b>\n" | |
"<p>" | |
"Generates files for smds on the top and bottom layers " | |
"wich can be used with mounting machines. " | |
"The x and y coordinates (units: mm) of the SMD elements are calculated " | |
"as mean of maximum and mimimum value of the smds origin points. " | |
"The calculated value does not necessarily fit with the origin " | |
"point of the part in the layout." | |
"All SMD elements populated in currently set assembly variant are considered." | |
"</p>" |
This file contains hidden or 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 | |
### BEGIN INIT INFO | |
# Provides: homebridge | |
# Required-Start: $network $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
This file contains hidden or 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
# generated by Slic3r 1.36.2-prusa3d on Wed Aug 2 10:34:28 2017 | |
[filament:Prusa PLA 1.75mm] | |
bed_temperature = 55 | |
bridge_fan_speed = 100 | |
cooling = 1 | |
disable_fan_first_layers = 1 | |
extrusion_multiplier = 1 | |
fan_always_on = 1 | |
fan_below_layer_time = 100 |
This file contains hidden or 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 python | |
import sys | |
import RPi.GPIO as GPIO | |
import signal | |
import subprocess | |
from time import sleep | |
pinOutput = 12 | |
pinInput = 16 |
This file contains hidden or 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/bash | |
cp overlay /etc/initramfs-tools/scripts/ | |
echo "overlay" >> /etc/initramfs-tools/modules | |
mkdir /overlay /overlay/temp /overlay/base | |
update-initramfs -c -k `uname -r` | |
echo "initramfs initrd.img-`uname -r`" >> /boot/config.txt | |
echo "boot=overlay `cat /boot/cmdline.txt`" > /boot/cmdline.txt |
This file contains hidden or 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
class NotificationHelper { | |
let notificationCenter: NSNotificationCenter | |
var observers: [AnyObject] = [] | |
init(notificationCenter: NSNotificationCenter = NSNotificationCenter.defaultCenter()) { | |
self.notificationCenter = notificationCenter | |
} | |
deinit { | |
observers.forEach { self.notificationCenter.removeObserver($0) } |
This file contains hidden or 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
- (void)dumpConfig:(NSURLSessionConfiguration *)config { | |
NSLog(@"config.identifier = %@", config.identifier); | |
NSLog(@"config.requestCachePolicy = %d", config.requestCachePolicy); | |
NSLog(@"config.timeoutIntervalForRequest = %lf", config.timeoutIntervalForRequest); | |
NSLog(@"config.timeoutIntervalForResource = %lf", config.timeoutIntervalForResource); | |
NSLog(@"config.networkServiceType = %d", config.networkServiceType); | |
NSLog(@"config.allowsCellularAccess = %d", config.allowsCellularAccess); | |
NSLog(@"config.discretionary = %d", config.discretionary); | |
NSLog(@"config.sharedContainerIdentifier = %@", config.sharedContainerIdentifier); | |
NSLog(@"config.sessionSendsLaunchEvents = %d", config.sessionSendsLaunchEvents); |
This file contains hidden or 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
// | |
// main.m | |
// webarchivedump | |
// | |
// Created by Jindrich Dolezy on 03.04.15. | |
// Copyright (c) 2015 Jindrich Dolezy. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or 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 nfc; | |
import javax.smartcardio.CommandAPDU; | |
public class LibnfcJava { | |
final protected static char[] hexArray = "0123456789ABCDEF".toCharArray(); | |
public static String bytesToHex(byte[] bytes, int count) { | |
int len = Math.min(bytes.length, count); | |
char[] hexChars = new char[len * 3]; |