Skip to content

Instantly share code, notes, and snippets.

💖
Wheeee

Kozhomuratov Ulan isratmir

  • Kyrgyzstan, Bishkek
Block or report user

Report or block isratmir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tour.go
//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 Sep 11, 2018 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

View gist:a92f72434e0943558583d06891ef09ef

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

[
  {
    "id": 14,
    "field_value": "",
    "user_value": "5000",
    "field_label": "Цена",
    "field_type_mobile": "editNumber",
@isratmir
isratmir / gethost.php
Last active Oct 20, 2016
Server's ip address from PHP's CLI
View gethost.php
<?php
$host = gethostname();
$ip = gethostbyname($host);
View ApiV1Handler.php
<?php
private function getListing()
{
/*
$listingSid = \App()->Request['sid'];
$listing = \App()->ListingManager->getListingBySID($listingSid);
$json = $listing->getValueForEncodingToJson();
$newJson = array();
foreach ( $json as $k => $j ) {
$newJson[$k] = $j['value'];
@isratmir
isratmir / forismatic.py
Created Apr 11, 2016
Read forismatic.com quotes from ubuntu cmd
View forismatic.py
#!/usr/bin/python
import sys
import os
import requests
import json
url = 'http://api.forismatic.com/api/1.0/'
params = dict(
View upper.rb
require 'mechanize'
require 'logger'
website = ARGV[0]
uname = ARGV[1]
upass = ARGV[2]
agent = Mechanize.new { |agent|
agent.open_timeout = 6
agent.read_timeout = 6
View wfw.js
var wfw = function(){
this.custom = {
trailerBrands: function(){
var brands = [];
function init() {
CKEDITOR.instances.TrailerBrands.on("loaded", function(){
CKEDITOR.instances.TrailerBrands.destroy(true);
$('#TrailerBrands').hide();
});
View gist:5ce53695cfd8b3ae1516
require 'json'
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'net/http'
file = File.read('music.json')
data_hash = JSON.parse(file)
@isratmir
isratmir / Parsesiteinfo.rb
Last active May 6, 2016
Site info parser
View Parsesiteinfo.rb
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'json'
require 'net/http'
require 'uri'
require 'open_uri_redirections'
require 'openssl'
def ping url
You can’t perform that action at this time.