Download com.bendaschel.onlogin.plist.
In a terminal, type the following commands
cp com.bendaschel.vagrantup.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/com.bendaschel.onlogin.plist
# PCI device 0x10ec:0x8168 (r8169) | |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e8:de:27:04:19:00", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="LAN" | |
# PCI device 0x10ec:0x8168 (r8169) | |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:bc:03:bd:6e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="WAN" |
#! /bin/bash | |
#usage: sudo ./convertiso.sh /path/to/iso/file /dev/path/to/usb | |
#converts a regular ISO file to Apple UDRW file for writing to USB | |
#then flashes then new image to the specified USB device | |
#check is script has been run as root /sudo | |
if [[ $UID != 0 ]]; then | |
echo "Please run the script as root." | |
exit 1 |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>shift space</name> | |
<identifier>private_shift_space</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::SPACE, ModifierFlag::SHIFT_L, | |
KeyCode::MINUS | |
</autogen> |
#* | |
How to use this template: | |
Open up the preferences menu in Android studio. | |
Navigate to Editor > File and Code Templates | |
Click the green + button above the templates tab | |
Name the template whatever you want. Make sure that it has "java" as an extension. | |
Paste this whole thing in the text area. | |
Click Ok. | |
This template will appear when you invoke the "New" context menu in the project pane. | |
*# |
task zipTask(type: Zip) { | |
baseName = 'bDaschelLab5' | |
rename 'app-debug.apk', "${baseName}.apk" | |
into baseName | |
from 'build/outputs/apk/app-debug.apk' | |
from 'README.md' | |
from ('src') { | |
into 'src' | |
} | |
} |
<!DOCTYPE html> | |
<html lang="en" ng-app="app"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body ng-controller="MyController"> | |
<form> | |
<div ng-repeat="(name, display) in form"> | |
<label for="{{ name }}">{{ display }}</label> |
#!/usr/bin/env bash | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# browsers | |
brew cask install opera google-chrome firefox lastpass google-hangouts | |
# office and files | |
brew cask install libreoffice evernote gimp google-drive |
<?php | |
use Codeception\Extension; | |
use Illuminate\Database\Eloquent\Model; | |
class ModelResetExtension extends Extension | |
{ | |
public static $events = [ | |
'test.after' => 'resetModelBootFlags' | |
]; |
#!/usr/bin/env python3 | |
import argparse | |
DISALLOWED_PUSH = ['upstream'] | |
def assert_safe_push(remote, branch): | |
if remote in DISALLOWED_PUSH: | |
print('Error: push to {remote} is not allowed'.format(**{'remote': remote})) |