Skip to content

Instantly share code, notes, and snippets.

View defaultpage's full-sized avatar
:octocat:
Ok

Default User defaultpage

:octocat:
Ok
  • Ukraine
View GitHub Profile
@defaultpage
defaultpage / example_array.js
Last active November 14, 2019 11:13
Скрипт для выгрузки списка каналов (подписки) пользователя через DevTools на web.telegram.org
angular.element
.cache[1]
.data
.$injector
.get('MtpApiManager')
.invokeApi('messages.getAllChats', {except_ids: []})
.then(e => {
console.log('--------------------------------')
console.log('ВСЕ КАНАЛЫ: ');
let channels = e.chats.filter(item => (item["_"] === 'channel'));
FROM php:7.1-fpm-alpine
###
# -----------------------------------------------------------
# Configure system
# -----------------------------------------------------------
###
# Update and install dependencies
RUN apk add --update --quiet --no-cache bash \
@defaultpage
defaultpage / class-order.php
Created August 7, 2018 09:36 — forked from hkdobrev/class-order.php
PHP convention for the order in a class.
<?php namespace Vendor\Library;
use Another\Vendor\Library\ClassName;
abstract class ClassName extends AnotherClass implements Countable, Serializable
{
const CONSTANTS = 'top';
use someTrait, anotherTrait {
anotherTrait::traitMethod insteadof someTrait;