Skip to content

Instantly share code, notes, and snippets.

😎
Working on @pixelfed

daniel dansup

😎
Working on @pixelfed
Block or report user

Report or block dansup

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stories.md
@dansup
dansup / deploy.sh
Last active Jul 29, 2019
Pixelfed development deployment script
View deploy.sh
cd /home/forge/pixelfed.social
git pull origin dev
composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader
echo "" | sudo -S service php7.2-fpm reload
php artisan config:cache
php artisan migrate --force
php artisan horizon:purge
php artisan horizon:terminate
@dansup
dansup / .env
Last active Aug 31, 2019
PixelFed Alpha Installation
View .env
APP_NAME=PixelFed Test
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
ADMIN_DOMAIN="localhost"
APP_DOMAIN="localhost"
LOG_CHANNEL=stack
@dansup
dansup / gist:d4c563c5577d034bf024e6c79d7d0b35
Created May 3, 2018 — forked from isimmons/gist:8202227
Truncate tables with foreign key constraints in a Laravel seed file.
View gist:d4c563c5577d034bf024e6c79d7d0b35

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');
View gist:6664c6be2e2015a681ee4631f7618259
"aoColumnDefs": [
{
"aTargets": [0], // row id
"mRender": function ( data, type, full ) {
return '<a href="/path/to/route/' + data + '">' + data.substring(0,13) + '...</a>';
}
}
],
View MigrationMakeCommand.php
<?php
namespace Laracasts\Generators\Commands;
use Illuminate\Console\Command;
use Illuminate\Container\Container;
use Illuminate\Filesystem\Filesystem;
use Laracasts\Generators\Migrations\NameParser;
use Laracasts\Generators\Migrations\SchemaParser;
use Laracasts\Generators\Migrations\SyntaxBuilder;
@dansup
dansup / auth-routes.php
Last active Jan 5, 2017
Auth routes for Laravel 5.3.28
View auth-routes.php
<?php
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register', 'Auth\RegisterController@register');
// Password Reset Routes...
View keybase.md

Keybase proof

I hereby claim:

  • I am dansup on github.
  • I am dansup (https://keybase.io/dansup) on keybase.
  • I have a public key whose fingerprint is 2B68 6965 1CA7 FBB6 348E FDEF 989F 5F36 F586 CC73

To claim this, I am signing this object:

View gist:be0653cbe9120d92ee00
### Keybase proof
I hereby claim:
* I am dansup on github.
* I am dansup (https://keybase.io/dansup) on keybase.
* I have a public key whose fingerprint is 39C4 1729 6C6B FCAB FA8A F88E 2DBA 641A F0E0 7F7E
To claim this, I am signing this object:
@dansup
dansup / main.md
Created Jan 29, 2012 — forked from campadrenalin/main.md
Getting started with cjdns: cjd's Network Suite
View main.md

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

You can’t perform that action at this time.