This is how I setup my home router to share a 4G/LTE connection at day and switch to a DSL connection overnight.
It also falls back to DSL connection whenever the 4G/LTE connection dies.
const fs = require("fs"); | |
const EventEmitter = require("events").EventEmitter; | |
const read = (fileHandle, bufferSize, position, emitter) => { | |
const buffer = Buffer.alloc(bufferSize); | |
fs.read( | |
fileHandle, | |
buffer, | |
0, |
#!/bin/bash | |
git_files=$(git ls-files) | |
for git_file in $git_files; do | |
encoding=$(file --mime-encoding "$git_file") | |
type=$(echo "$encoding" | awk -F ': ' '{ print $2 }') | |
if [ "$type" == "binary" ]; then | |
echo $git_file | |
fi |
using UnityEngine; | |
public class Unity3DObjectDragHandler : MonoBehaviour | |
{ | |
public Camera camera; | |
public void Start() | |
{ | |
} |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Drive\shell] | |
@="open" | |
[HKEY_CLASSES_ROOT\Drive\shell\open] | |
[HKEY_CLASSES_ROOT\Drive\shell\open\command] | |
@="C:\\Program Files\\Double Commander\\doublecmd.exe -C \"%1\"" |
[Unit] | |
Description=Packet Capture Service for BitMeter-OS | |
Requires=network-online.target | |
ConditionPathExists=/var/lib/bitmeter/bitmeter.db | |
After=syslog-ng.target network-online.target | |
[Service] | |
ExecStart=/usr/bin/bmcapture | |
Type=idle | |
StandardError=syslog |
; Courtesy of http://superuser.com/a/403191 | |
^#c:: | |
WinGetTitle, windowName, A | |
CenterWindow(windowTitleVariable) { | |
WinGetPos,,, Width, Height, %windowTitleVariable% | |
WinMove, %windowTitleVariable%,, (A_ScreenWidth - Width) / 2, (A_ScreenHeight - Height) / 2 | |
} |
/* | |
* Copyright (c) 2015 Fardjad Davari | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
* sell copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
|
|