Skip to content

Instantly share code, notes, and snippets.

View hrefhref's full-sized avatar
💭
🥖 🧀 🍷

href hrefhref

💭
🥖 🧀 🍷
View GitHub Profile
@hrefhref
hrefhref / downloadstablediffusiontogdrive_v1-4.ipynb
Created August 24, 2022 14:07
DownloadStableDiffusionToGDrive_v1.4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hrefhref
hrefhref / gist:927bfca9c6a8966c2846e305df7efc7e
Last active October 30, 2020 10:09
Install FreeBSD or other OSes more easily on Online.net/Scaleway Dedibox by using qemu in rescue
* Passer en rescue
root
With NVMe:
apt-get update && apt-get install -y qemu-system qemu-kvm ovmf \
&& wget https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.1/FreeBSD-12.1-RELEASE-amd64-disc1.iso \
&& qemu-system-x86_64 -drive if=none,format=raw,media=disk,file=/dev/nvme0n1,id=nvme0 -drive if=none,format=raw,media=disk,file=/dev/nvme1n1,id=nvme1 \
-device nvme,drive=nvme0,serial=0 -device nvme,drive=nvme1,serial=1 -display curses \
fd=# \d instances
Table "public.instances"
Column | Type | Collation | Nullable | Default
-------------------+-----------------------------+-----------+----------+---------------------------------------
id | bigint | | not null | nextval('instances_id_seq'::regclass)
domain | character varying(255) | | |
version | character varying(255) | | |
server | integer | | |
name | character varying(255) | | |
description | text | | |
defmodule Pleroma.Upload.Filter.Mogrifun do
@behaviour Pleroma.Upload.Filter
@filters [
{"implode", "1"},
{"-raise", "20"},
{"+raise", "20"},
[{"-interpolate", "nearest"}, {"-virtual-pixel", "mirror"}, {"-spread", "5"}],
"+polaroid",
{"-statistic", "Mode 10"},
req qui fail:
10.69.8.2.44127 > 10.69.1.69.80: Flags [P.], cksum 0x1f2f (incorrect -> 0x23a8), seq 0:312, ack 1, win 1025, options [nop,nop,TS val 707742158 ecr 3235775578], length 312: HTTP, length: 312
GET /api/v1/accounts/relationships HTTP/1.0
Host: dev.pigs.social
X-Forwarded-Proto: https
X-Real-IP: zzzz
X-Forwarded-For: zzzz
Connection: close
User-Agent: Mastalab/1.20.0-beta-1 Android/6.0
%%Generated - edit /usr/home/href/dev/pleroma/pleroma/_build/prod/rel/pleroma/pleroma.conf or /usr/home/href/dev/pleroma/pleroma/_build/prod/rel/pleroma/pleroma.conf/sys.config
[{sasl,[{errlog_type,error}]},
{mime,
[{types,
#{<<"application/activity+json">> => [<<"activity+json">>],
<<"application/ld+json">> => [<<"activity+json">>],
<<"application/xrd+xml">> => [<<"xrd+xml">>]}}]},
{ecto,[{json_library,'Elixir.Jason'}]},
{logger,
[{console,
@hrefhref
hrefhref / hook.sh
Created November 9, 2017 13:52
dehydrated hook for dns validation with powerdns
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
umask 077
mysql_base="powerdns"
mysql_host="localhost"
mysql_user="powerdns"
### Keybase proof
I hereby claim:
* I am hrefhref on github.
* I am jbracco (https://keybase.io/jbracco) on keybase.
* I have a public key whose fingerprint is 0426 FD4E 78A6 CFB5 AE47 A33E 724F 8300 FBC8 53DA
To claim this, I am signing this object:
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
conky.config = {
alignment = 'top_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '20120624';
%IRSSI = (
authors => 'href',
contact => 'href@random.sh',
name => 'anti_fail',
description => '(almost) no more /w or /a fails',