Skip to content

Instantly share code, notes, and snippets.

View dorogoff's full-sized avatar

Aleksey Dorogov dorogoff

View GitHub Profile
@dorogoff
dorogoff / index.js
Created August 31, 2022 20:29 — forked from Alezco/index.js
Puppeteer in Google Cloud Functions
const puppeteer = require('puppeteer');
const PUPPETEER_OPTIONS = {
headless: true,
args: [
'--disable-gpu',
'--disable-dev-shm-usage',
'--disable-setuid-sandbox',
'--timeout=30000',
'--no-first-run',
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dorogoff
dorogoff / scraper.js
Created July 30, 2021 11:27 — forked from jnsprnw/scraper.js
PhantomJS setup for hiding Phantomjs fingerprint
"use strict";
var page = require('webpage').create();
page.onConsoleMessage = function (msg) {
console.log('Console.log: ' + msg);
};
page.onError = function (msg) {
console.log('Error: ' + msg);
};
@dorogoff
dorogoff / default.conf
Created December 2, 2019 22:12
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@dorogoff
dorogoff / send.php
Created July 30, 2019 22:59 — forked from Repox/send.php
Google API PHP Client - Firebase Cloud Messaging Service v1 example
<?php
/**
* This serves as an example of how to use the Google API PHP Client
* with Firebase Cloud Messaging Service.
*
* The client can be found here:
* https://github.com/google/google-api-php-client
*
* At the time of writing this, there's no Service object for the correct
@dorogoff
dorogoff / convert id_rsa to pem
Created June 21, 2017 07:45 — forked from mingfang/convert id_rsa to pem
Convert id_rsa to pem file
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 700 id_rsa.pem
@dorogoff
dorogoff / responsive-align.less
Created March 17, 2016 07:33 — forked from ohryan/responsive-align.less
Bootstrap 3 Responsive Text Align
.text-xs-left { text-align: left; }
.text-xs-right { text-align: right; }
.text-xs-center { text-align: center; }
.text-xs-justify { text-align: justify; }
@media (min-width: @screen-sm-min) {
.text-sm-left { text-align: left; }
.text-sm-right { text-align: right; }
.text-sm-center { text-align: center; }
.text-sm-justify { text-align: justify; }