Skip to content

Instantly share code, notes, and snippets.

View straxico's full-sized avatar
🍵
live with tea

mehran motiee straxico

🍵
live with tea
View GitHub Profile
hi
# -*- coding: utf-8 -*-
# Use Python 3
import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
import telepot
app = Flask(__name__)
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 12 18:17:16 2018
@author: strix
"""
import instaloader
L = instaloader.Instaloader()
L.login('#########username#######', '#######password##########') # (login)
profile = instaloader.Profile.from_username(L.context, '#########username of target##############')
list=[]
const isServer = typeof window === 'undefined'
docker build -t next-app .
docker run --rm -it -p 3000:3000/tcp next-app:latest
docker run --rm -it -p 3000:3000 -e "API_URL=https://example.com" next-app
docker system prune --volumes -f
...........................................................
$ docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
Error: Cannot perform an interactive login from a non TTY device
ERROR: Job failed: exit code 1
.............................................................................................
$ docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 26 11:42:12 2019
@author: mehran
"""
# -*- coding: utf-8 -*-
import Document from 'next/document'
import { ServerStyleSheet } from 'styled-components'
export default class MyDocument extends Document {
static async getInitialProps (ctx) {
const sheet = new ServerStyleSheet()
const originalRenderPage = ctx.renderPage
try {
ctx.renderPage = () =>
@straxico
straxico / .eslintrc.json
Created September 1, 2019 22:36
eslint config file for react prettier typescript
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["airbnb", "prettier/@typescript-eslint", "plugin:prettier/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
{
"git.autofetch": true,
"sync.autoDownload": true,
"sync.autoUpload": true,
"sync.gist": "0675ee2f6e62a82209371e62e4f107c4",
"showGitMetrics": false
}