This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# In case df shows >90% for /boot run: | |
#sudo apt-get autoremove | |
# Add repository | |
sudo add-apt-repository ppa:ondrej/php | |
# Install required packages | |
sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontFamily": "DejaVu Sans Mono", | |
// "files.trimTrailingWhitespace": true, | |
"editor.fontSize": 14, | |
"editor.tabSize": 2, | |
"files.eol": "\n", | |
"editor.cursorBlinking": "smooth", | |
"search.exclude": { | |
"**/.git": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// "auto_complete_cycle": true, | |
"caret_extra_bottom": 1, | |
"caret_extra_top": 2, | |
"caret_extra_width": 1, | |
"caret_style": "blink", | |
"drag_text": false, | |
"draw_white_space": "none", | |
// "ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$spinner-color: #69717d !default | |
$spinner-size: 48px !default | |
.overlay | |
background: rgba(black,.8) | |
height: 100vh | |
.spinner | |
font-size: $spinner-size | |
position: relative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A warning occurred (42 apples) | |
An error occurred |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--disable-directwrite-for-ui --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> | |
<title>���������</title> | |
<meta name="description" content="��������� - ������ ���������� ���� �������� ��������� ���������� � ������� ���" /> | |
<meta name="keywords" content="�����, ���������, �������, ������, ������������, �������" /> | |
<meta name="generator" content="DataLife Engine (http://dle-news.ru)" /> | |
<link rel="search" type="application/opensearchdescription+xml" href="http://www.klassprof.org/engine/opensearch.php" title="���������" /> | |
<link rel="alternate" type="application/rss+xml" title="���������" href="http://www.klassprof.org/rss.xml" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isInt(value) { | |
return !isNaN(value) && (function(x) { return (x | 0) === x; })(parseFloat(value)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://codingtricks.fidibuy.com/participant/join/5474b4eab7606ef9d71c045a/MongoDb:-how-to-remove-duplicate-entries-in-arrays | |
// with modification | |
// MongoDB GUI Tools: https://studio3t.com/download | |
var fixFieldName = "primary_images"; | |
var collectionName = "my_collection"; | |
db[collectionName].find({ | |
"_id": ObjectId("5762a2d397694a5295176697") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP's curl extension won't let you pass in strings as multipart file upload bodies; you | |
* have to direct it at an existing file (either with deprecated @ syntax or the CURLFile | |
* type). You can use php://temp to get around this for one file, but if you want to upload | |
* multiple files then you've got a bit more work. | |
* | |
* This function manually constructs the multipart request body from strings and injects it | |
* into the supplied curl handle, with no need to touch the file system. |