Skip to content

Instantly share code, notes, and snippets.

View isratmir's full-sized avatar
🍔
Focusing

Kozhomuratov Ulan isratmir

🍔
Focusing
  • Kyrgyzstan, Bishkek
View GitHub Profile
@isratmir
isratmir / responses.json
Created October 27, 2021 11:42
example of error responses
{
"status": "error",
"data": {
"error_code": "not_authenticated"
}
}
{
"status": "error",
File "/app/tests/conftest.py", line 152, in user
user.save()
File "/app/collector/core/models/employee.py", line 139, in save
return super(Employee, self).save(commit)
File "/app/collector/core/models/base.py", line 44, in save
traceback.print_stack()
File "/app/tests/conftest.py", line 193, in user_with_email
email.save()
------------ Sat May 01 16:02:40 +06 2021 ------------
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Started Forward Password R…s to Plymouth Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Finished Flush Journal to Persistent Storage.
[ OK ] Mounted Mount unit for gnome-3-34-1804, revision 66.
[ OK ] Mounted Mount unit for code, revision 62.
[ OK ] Mounted Mount unit for heroku, revision 4044.
[ OK ] Mounted Mount unit for gnome-3-34-1804, revision 60.
[ OK ] Mounted Mount unit for heroku, revision 4048.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Uppy</title>
<link href="https://releases.transloadit.com/uppy/v1.27.0/uppy.min.css" rel="stylesheet">
</head>
<body>
<div id="drag-drop-area"></div>
To delete all containers including its volumes use:
docker rm -vf $(docker ps -a -q)
To delete all the images:
docker rmi -f $(docker images -a -q)
docker system prune
package main
import (
"log"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
//1.
//Every Go program is made up of packages.
//Programs start running in package main.
//By convention, the package name is the same as the last element of the import path.
//For instance, the "math/rand" package comprises files that begin with the statement package rand.
//2.
import "fmt"
import "math"
@isratmir
isratmir / docker-help.md
Created September 11, 2018 14:59 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

Cохранено с мобилки:

[
  {
    "id": 14,
    "field_value": "",
    "user_value": "5000",
    "field_label": "Цена",
    "field_type_mobile": "editNumber",
@isratmir
isratmir / gethost.php
Last active October 20, 2016 08:46
Server's ip address from PHP's CLI
<?php
$host = gethostname();
$ip = gethostbyname($host);