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 | |
function file_exists_ci($file) { | |
if (file_exists($file)) | |
return $file; | |
$lowerfile = strtolower($file); | |
foreach (glob(dirname($file) . '/*') as $file) | |
if (strtolower($file) == $lowerfile) |
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
From 5e27d3e4b8896e7ad49afe19cd5426dc0c9fe106 Mon Sep 17 00:00:00 2001 | |
From: salaros <[email protected]> | |
Date: Sun, 1 Jul 2018 18:50:14 +0300 | |
Subject: [PATCH] My submission | |
XOV:v2 | |
--- | |
.../Controller/AnalyticsControllerTests.cs | 150 +++++++++++++++++++++ | |
.../Controller/PanelControllerTests.cs | 38 +++++- | |
CrossSolar.Tests/CrossSolar.Tests.csproj | 3 +- |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFrameworks>netstandard2.0;net40;net45;net471</TargetFrameworks> | |
</PropertyGroup> | |
<!-- A workaround for "full" .NET Framework targets to try to fallback on Mono before failing --> | |
<PropertyGroup Condition="'$(OS)' != 'Windows_NT' And $(TargetFramework.StartsWith('net'))"> | |
<!-- Look up for Mono installations on Linux or macOS --> | |
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/usr/lib/mono')">/usr/lib/mono</MonoPath> |
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
# ... | |
environment: | |
VERSION_SIMPLE: '{version}' | |
VERSION_INFORMATIONAL: '{version}' | |
VERSION_UNSTABLE_SUFFIX: '-preview-$(APPVEYOR_BUILD_NUMBER)' | |
init: | |
- ps: .\scripts\init.ps1 |
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
(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@\.\*\\\/,#$%`|\)\(\]\[=]).{6,25} | |
* min 6 max 25 characters | |
* at least one lower-case letter | |
* at least one upper-case letter | |
* at least one digit | |
* at least one "special" character, among these: , . * / \ # $ % ` [ ] ) ( |
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 | |
# Ms Office thumbnailer | |
# test Ubuntu distribution | |
DISTRO=$(lsb_release -is 2>/dev/null) | |
[ "${DISTRO}" != "Ubuntu" ] && { zenity --error --text="This automatic installation script is for Ubuntu only"; exit 1; } | |
# install tools | |
sudo apt-get -y install libfile-mimeinfo-perl gvfs-bin unoconv netpbm |
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
# Just clean up incomplete images | |
[[ ! -z $(docker images --filter "dangling=true" -q --no-trunc) ]] && \ | |
docker rmi --force $(docker images --filter "dangling=true" -q --no-trunc) | |
#Remove unused containers | |
[[ ! -z $(docker ps -qa --no-trunc --filter "status=exited") ]] && \ | |
docker rm $(docker ps -qa --no-trunc --filter "status=exited") | |
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
.nautilus-desktop.nautilus-canvas-item { | |
color: #ffffff; | |
text-shadow: 1px 1px 2px rgba(25, 25, 25, 0.75), 1px 1px 2px rgba(25, 25, 25, 0.75); | |
} |
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
apt-get install libusb-0.1-4 libusb-0.1-4:i386 |
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
sudo apt install -y \ | |
jbigkit-bin \ | |
imagemagick \ | |
ghostscript \ | |
inotify-tools | |
wget https://github.com/xundeenergie/ricoh-sp100/raw/master/ricoh-sp100_0.1.10_all.deb | |
sudo dpkg -i ricoh-sp100_0.1.10_all.deb && rm -rfv ricoh-sp100_0.1.10_all.deb |