Skip to content

Instantly share code, notes, and snippets.

View wellington1993's full-sized avatar
🏠
Working from home

Wellington Torrejais da Silva wellington1993

🏠
Working from home
View GitHub Profile
@KTZgraph
KTZgraph / README.md
Created October 12, 2020 13:35 — forked from enjalot/README.md
Libraries used in bl.ocks

A dump of 2000+ libraries found in the 14,000+ blocks we have indexed.

I parse the html files of all the blocks with this code.

It would be nice to have a structured way to pull the version out of this variety of URL patterns. Perhaps someone will come up with a crazy regex that does it.

This is likely the first step to indexing the library version for blockbuilder search. We have an issue for this tracked here.

Built with blockbuilder.org

deb http://packages.linuxmint.com ulyana main upstream import backport
deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ focal partner
@wellington1993
wellington1993 / marcas-index.hbs
Last active June 25, 2020 19:52
Marcas index Component
<div>
<h4>Criar nova marca</h4>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<LinkTo @route="marcas/new" class="btn btn-success">Nova marca</LinkTo>
</div>
</div>
</div>
<table class="table table-stripped">
<thead>
@betocantu93
betocantu93 / globals.js
Last active June 22, 2020 20:03
Adds some runtime globals for making Ember.js developing a breeze
//instance-initializers/globals.js
export function initialize(application) {
let { environment } = application.resolveRegistration('config:environment');
if (environment !== "production") {
/**
This basically exposes the application, pretty useful because
you can use stuff like this from the console.
@jodykpw
jodykpw / nginx.conf
Last active March 5, 2022 21:51
Harbor with Traefik, Nginx config.
worker_processes auto;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
}
http {
class ApplicationRoute extends Route {
myAction() {
// do some fancy stuff here
}
setupController(controller, model) {
super.setupController(controller, model);
// Instead of setting on the controller, you can also inject
// a service into this route and set the action there.
@everstake
everstake / solana_api.conf
Last active November 28, 2022 17:08
Nginx config used for api.solana-tds.everstake.one
#Nginx config used for api.solana-tds.everstake.one
# Tune timeouts for proxy
proxy_buffering off;
proxy_connect_timeout 360s;
proxy_send_timeout 360s;
proxy_read_timeout 700s;
proxy_next_upstream error timeout http_500 http_502 http_503 http_504;
@maehr
maehr / PDF-tools.md
Last active February 5, 2025 17:18
PDF

Command line tools

  • Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
  • Ghostscript is an interpreter for the PostScript language and for PDF.
  • MuPDF is an open source software framework for viewing and converting PDF, XPS, and E-book documents.
    • mutool draw - This is the more customizable tool, but also has a more difficult set of command line options. It is primarily used for rendering a document to image files.
    • mutool convert - This tool is used for converting documents into other formats, and is easier to use.
    • mutool trace - This is a debugging tool used for printing a trace of the graphics device calls on a page.
  • mutool show - A tool for displaying the inter
@b4oshany
b4oshany / nginx-icd11.conf
Created February 25, 2020 02:52
Nginx ICD11
user nginx;
worker_processes 1;
error_log /var/log/nginx/errora.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
@lifeart
lifeart / component.js
Created February 6, 2020 14:42
Ember Cp Validations Octane
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import Object from "@ember/object";
import { reads } from "@ember/object/computed";
import { validator, buildValidations } from "ember-cp-validations";
import { getOwner } from "@ember/application";
const Validations = buildValidations({
billing_first_name: {
descriptionKey: "form.fields.billing_first_name",