Skip to content

Instantly share code, notes, and snippets.

View dansup's full-sized avatar
😎
Working on @pixelfed

daniel dansup

😎
Working on @pixelfed
View GitHub Profile
@dansup
dansup / homebrew.mxcl.php.plist
Created September 21, 2023 00:26 — forked from askdkc/homebrew.mxcl.php.plist
fork safe php
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.php</string>
<key>LimitLoadToSessionType</key>
<array>
@dansup
dansup / gist:d4c563c5577d034bf024e6c79d7d0b35
Created May 3, 2018 00:27 — forked from isimmons/gist:8202227
Truncate tables with foreign key constraints in a Laravel seed file.

For the scenario, imagine posts has a foreign key user_id referencing users.id

public function up()
{
	Schema::create('posts', function(Blueprint $table) {
		$table->increments('id');
		$table->string('title');
		$table->text('body');
@dansup
dansup / main.md
Created January 29, 2012 02:10 — forked from campadrenalin/main.md
Getting started with cjdns: cjd's Network Suite

Getting started with cjdns: cjd's Network Suite

wiki This document is for people who want to help but have no technical knowledge. It assumes you won't be getting involved in squabbles over which relay technology to use, etc.

Step 1: Set up CJDNS

One of the few things widely agreed upon at the time of this writing is the use of CJDNS. Currently Windows is not supported, but if you have Linux or can run Linux in a virtual machine, you can follow the step-by-step instructions lower on that page to install and start up an instance of CJDNS on your system. If you're using Ubuntu 11.10 (latest version), you can follow these simplified instructions.

One thing you should know is cjdns currently isn't a wireless meshnet. A physical meshnet consisting of nodes geographically close to each other is a long way off. Instead, cjdns offers a "mixnet"-like system. cjdns is routable over the curren