Skip to content

Instantly share code, notes, and snippets.

Avatar
🚜
trrrrrrrrrrrrrr

Mykola kolyabres

🚜
trrrrrrrrrrrrrr
View GitHub Profile
View snapshot.php
#!/usr/bin/env php
<?php
$snapshotsFolder = '/home/kolyabres/bin/snapshots';
if(!file_exists($snapshotsFolder)) {
mkdir($snapshotsFolder);
}
if($argc < 2) {
View docker build
docker build -t=gateway_web .
docker tag gateway_web servme/gateway_web
docker push servme/gateway_web
View gist:e76250bd77d424382876afcbe219ddfb
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
const errors = (e) => {
console.log('catch', e)
}
View pdf.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="/server/main.css">
</head>
<body>
<div class="content">
<div class="questionnaire-header clearfix">
@kolyabres
kolyabres / countries.sql
Created May 9, 2017 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
View countries.sql
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;