Skip to content

Instantly share code, notes, and snippets.

@emoryy
emoryy / aa_music_links.js
Created April 25, 2017 18:53
AnimeAddicts Direct Music Download Links
@emoryy
emoryy / ArpyEnhance.user.js
Last active June 1, 2017 12:14
Arpy Enhance
// ==UserScript==
// @name ArpyEnhance
// @namespace hu.emoryy
// @version 0.2
// @description enhances Arpy
// @author Emoryy
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @require https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js
// @include http://arpy.dbx.hu/timelog*
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
# Contributor: Michael Fellinger <m.fellinger@gmail.com>
pkgname=couchdb-git-peruser-git-test
pkgver=2.0.0_test
pkgrel=13
pkgdesc="A document-oriented database that can be queried and indexed in a MapReduce fashion using JSON"
arch=('i686' 'x86_64')
● couchdb.service - CouchDB Server
Loaded: loaded (/usr/lib/systemd/system/couchdb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-05-14 22:02:43 CEST; 1min 16s ago
Process: 11962 ExecStart=/usr/lib/couchdb/bin/couchdb (code=exited, status=1/FAILURE)
Main PID: 11962 (code=exited, status=1/FAILURE)
máj 14 22:02:42 mypc couchdb[11962]: [error] 2017-05-14T20:02:42.464690Z couchdb@localhost <0.210.0> -------- Error starting Apache CouchDB:
máj 14 22:02:42 mypc couchdb[11962]: {error,{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{ets,member,[mem3_openers,<<"_users">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,for_db,2,[{file,"src/mem3_shards.erl"},{line,59}]},{mem3_shards,local
Kérés:
GET /api/HammyQueryAPI/messages?limit=10&messageTypeId%5B%5D=PROGRAM.HOME.BERKSHIRE&messageTypeId%5B%5D=PROGRAM.CROSS-PLATFORM&offset=0&sort=createdAt
Válasz:
{
"data": [
{
"type": "messages",
"id": "26",
"attributes": {
@emoryy
emoryy / skydraw.py
Created September 5, 2017 17:54
Skywriter test
from curses import wrapper
from curses.textpad import Textbox, rectangle
import skywriter
import time
import signal
from threading import Thread
w = 80
h = 38
@emoryy
emoryy / arduino-unicorn-hat-hd.ino
Created November 4, 2017 15:45
Arduino Unicorn HAT HD
#include <SPI.h>
const int slaveSelectPin = D8;
uint8_t buffer[16][16][3] = { 0 };
unsigned long step = 0;
//------------------demos------------------------
void gradient(uint8_t x, uint8_t y, unsigned long step) {
@emoryy
emoryy / response.json
Created November 8, 2017 08:44
Kérés: GET /api/HammyQueryAPI/messages?limit=5&offset=15
{
"data": [
{
"type": "messages",
"id": "16",
"attributes": {
"properties": [],
"html-body": "\n<html>\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n <title></title>\n <style type=\"text/css\">\n /* Client-specific Styles */\n #outlook a{padding:0;} /* Force Outlook to provide a \"view in browser\" button. */\n body{width:100% !important;} .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */\n body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */\n /* Reset Styles */\n body{margin:0; padding:0;}\n img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}\n table td{border-collapse:collapse;}\n #backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}\n /* Template Styles */\n /* ////////// STANDARD STYLING: COMMON PAGE
@emoryy
emoryy / arduino-blinkt.ino
Created November 9, 2017 12:25
Arduino Blinkt!
#include <Adafruit_DotStar.h>
#include <SPI.h>
#define NUMPIXELS 8 // Number of LEDs in strip
// Here's how to control the LEDs from any two pins:
#define DATAPIN 4
#define CLOCKPIN 5
Adafruit_DotStar strip = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);
@emoryy
emoryy / styles.less
Created March 12, 2018 08:47
Atom custom style for Atom Dark / Neon
atom-text-editor, atom-text-editor {
// color: #71787c;
color: #aaa;
}
.scroll-view {
// -webkit-font-smoothing: none !important;
// font-family: Unscii-Mod;
// font-size: 17px;