Skip to content

Instantly share code, notes, and snippets.

View pavel-one's full-sized avatar

Pavel Zarubin pavel-one

View GitHub Profile
@but1head
but1head / api.php
Created April 1, 2018 15:38
мини рест для modx на slim
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
require '........../autoload.php'; // путь к композеру
define('MODX_API_MODE', true);
require $_SERVER["DOCUMENT_ROOT"].'/index.php';
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@bkamapantula
bkamapantula / script.sh
Created January 27, 2012 21:45
Embedding fonts in PDFLateX
root@------# pdffonts old_draft1.pdf
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
MMNOLU+NimbusRomNo9L-Medi Type 1 yes yes no 4 0
QRJGLY+NimbusRomNo9L-MediItal Type 1 yes yes no 5 0
ZKJODE+NimbusRomNo9L-Regu Type 1 yes yes no 6 0
VDWPAT+CMSY8 Type 1 yes yes no 7 0
VFEFVW+NimbusRomNo9L-ReguItal Type 1 yes yes no 8 0
TXZOPV+CMMI10 Type 1 yes yes no 20 0