This gist contains code by h4ck3rm1k3, see http://wikimapia.org/forum/viewtopic.php?t=9972
This file contains 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
2021-08-26T12:37:24.190+0300 [DEBUG] Adding temp file log sink: /var/folders/79/t_7lwg4n7dxcqr4m76wrcrc00000gn/T/terraform-log159265889 | |
2021-08-26T12:37:24.190+0300 [INFO] Terraform version: 1.0.5 | |
2021-08-26T12:37:24.190+0300 [INFO] Go runtime version: go1.16.6 | |
2021-08-26T12:37:24.191+0300 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"} | |
2021-08-26T12:37:24.191+0300 [DEBUG] Attempting to open CLI config file: /Users/oefimov/.terraformrc | |
2021-08-26T12:37:24.191+0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2021-08-26T12:37:24.191+0300 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2021-08-26T12:37:24.191+0300 [DEBUG] ignoring non-existing provider search directory /Users/oefimov/.terraform.d/plugins | |
2021-08-26T12:37:24.191+0300 [DEBUG] ignoring non-existing provider search directory /Users/oefimov/Library/Application Support/io.terraform/plugins | |
2021-08-26T12:37:24.191+0300 [DEBUG] ignoring non-existing provider search directory /Library/Applicati |
This file contains 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
; | |
; LAB Sharpen, v. 1.0 | |
; | |
; Adam Kemp (gimp@adamkemp.com) | |
; (C) 2009 | |
; | |
; This script does LAB sharpening in GIMP using the unsharp mask. The steps it automates are: | |
; 1. Decompose the image into LAB | |
; 2. Run the unsharp mask filter on the Luminance (L) layer using the supplied settings. | |
; 3. Recompose the image from the LAB image |
This file contains 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 | |
class Example { | |
private static $a = array(1, 2); | |
private static $b = null; | |
public static function init() | |
{ | |
if (self::$b === null) { | |
self::$b = self::$a[0]; |
This file contains 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
\documentclass{article} | |
\usepackage[koi8-r]{inputenc} | |
\hoffset=0pt | |
\voffset=.3em | |
\tolerance=400 | |
\newcommand{\eTiX}{\TeX} | |
\begin{document} | |
\section*{Highlight.js} | |
\begin{table}[c|c] | |
$\frac 12\, + \, \frac 1{x^3}\text{Hello \! world}$ & \textbf{Goodbye\~ world} \\\eTiX $ \pi=400 $ |
This file contains 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 | |
/** | |
* Generates array with pages numbers for pagination | |
* | |
* @param int $current Current page | |
* @param int $total Total pages | |
* @param int $edgeSize | |
* @param int $midSize | |
* |
This file contains 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
sannis@Oleg-Efimovs-MacBook-Pro: nodejs $ uname -a | |
Darwin Oleg-Efimovs-MacBook-Pro.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64 | |
sannis@Oleg-Efimovs-MacBook-Pro: nodejs $ node -v | |
v0.6.17 | |
sannis@Oleg-Efimovs-MacBook-Pro: nodejs $ npm -v | |
1.1.21 |
This file contains 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
// Wikipedia link cleanup | |
(function (wpl) { | |
if (wpl) { | |
function decodeWikiURL(link) { | |
function deChar(ss) { | |
return decodeURIComponent(ss.replace(/\.([0-9A-F][0-9A-F])/g, '%$1')); | |
} | |
function deChar2(hhh) { | |
var ch = deChar(hhh); |
This file contains 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/bash | |
# list of programs we depend on | |
progs="xdpyinfo grep head sed ffmpeg pacat parec sox" | |
# check for programs we depend on | |
result=0 | |
for prog in $progs | |
do | |
type -p $prog > /dev/null |
This file contains 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
SELECT * FROM table WHERE price = (SELECT MAX(price) FROM table); | |
vs | |
SELECT * FROM table ORDER BY price DESC LIMIT 1; |
NewerOlder