Skip to content

Instantly share code, notes, and snippets.

View Sannis's full-sized avatar
🎯
Focusing

Oleg Efimov Sannis

🎯
Focusing
View GitHub Profile
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
@Sannis
Sannis / lldb.log
Created March 22, 2014 21:10
Debugger session
sannis@sorontar: ~/Documents/Projects/C/protobuf2json-c (± master) $ lldb ./test/run-tests
Current executable set to './test/run-tests' (x86_64).
(lldb) run
Process 22310 launched: './test/run-tests' (x86_64)
[% 0|+ 0|- 0|T 0|S 0]: protobuf2json_string__person__requiredselect(): Interrupted system call
Fatal error in runner.c on line 277: process_wait failed
Process 22310 stopped
* thread #1: tid = 0x23a582, 0x00007fff8c23c866 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00007fff8c23c866 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill + 10:
@Sannis
Sannis / example.php
Created September 13, 2012 12:10
private static vars
<?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];
@Sannis
Sannis / example.tex
Created September 2, 2012 15:49
Highlighting test
\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 $
@Sannis
Sannis / pagination.php
Created June 25, 2012 09:07
Pagination HTML generator
<?php
/**
* Generates array with pages numbers for pagination
*
* @param int $current Current page
* @param int $total Total pages
* @param int $edgeSize
* @param int $midSize
*
@Sannis
Sannis / LICENSE.markdown
Created June 17, 2012 22:14
Wikimapia API perl client
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
@Sannis
Sannis / wtf_wikipedia_anchors.js
Created May 11, 2012 15:57
WTF Wikipedia anchors encoding
// 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);
@Sannis
Sannis / screencast.sh
Created March 15, 2012 21:22 — forked from pomeo/screencast.sh
script to make screencasts on Linux
#!/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
SELECT * FROM table WHERE price = (SELECT MAX(price) FROM table);
vs
SELECT * FROM table ORDER BY price DESC LIMIT 1;