Skip to content

Instantly share code, notes, and snippets.

View maximveksler's full-sized avatar
Wow

Maxim Veksler maximveksler

Wow
  • Tel Aviv, Israel
  • 18:59 (UTC +02:00)
  • X @mvxlr
View GitHub Profile
@maximveksler
maximveksler / install_jq.sh
Last active March 5, 2024 12:02 — forked from kamermans/install_jq.sh
Install jq (JSON Command Line processor)
#!/bin/bash -e
# This scripts installs jq: http://stedolan.github.io/jq/
JQ=/usr/bin/jq
curl -o "$JQ" -L https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 && chmod +x $JQ
echo "$($JQ --version) installed."
@maximveksler
maximveksler / Brewfile
Created June 12, 2023 03:08 — forked from jasonmorganson/Brewfile
MacOS Brewfile
tap "argoproj/tap"
tap "azure/draft"
tap "boz/repo"
tap "browsh-org/browsh"
tap "contribsys/faktory"
tap "datawire/blackbird"
tap "davrodpin/mole"
tap "derailed/k9s"
tap "dtan4/dtan4"
tap "eko/tap"
@maximveksler
maximveksler / markup
Created April 23, 2016 18:29 — forked from petehouston/markup
[Bootstrap] Text overlay center inside the image
<div class="row" id="box-search">
<div class="thumbnail text-center">
<img src="img/cafe.jpg" alt="" class="img-responsive">
<div class="caption">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, quisquam?</p>
</div>
</div>
</div>
@maximveksler
maximveksler / web-servers.md
Last active April 21, 2016 18:17 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.xcode_ramdisk.agent</string>
<key>ProgramArguments</key>
<array>
<string>xcode_ramdisk.sh</string>
<string>start</string>
protocol ContextError : ErrorType {
mutating func addContext<T>(type: T.Type)
}
protocol Contextualizable {}
extension Contextualizable {
func addContext(var error: ContextError) -> ContextError {
error.addContext(self.dynamicType)
return error
}
@maximveksler
maximveksler / AppDelegate.swift
Last active September 3, 2015 09:46 — forked from sawapi/AppDelegate.swift
[Swift] Push Notification
//
// AppDelegate.swift
// pushtest
//
// Created by sawapi on 2014/06/08.
// Copyright (c) 2014年 sawapi. All rights reserved.
//
// iOS8用
import UIKit