Skip to content

Instantly share code, notes, and snippets.

@natikgadzhi
natikgadzhi / holidays-api-airbyte-connector.yaml
Created April 8, 2024 17:23
Holidays API Airbyte Connector
version: 0.79.1
type: DeclarativeSource
check:
type: CheckStream
stream_names:
- holidays
definitions:
@natikgadzhi
natikgadzhi / yubico-otp.sh
Created December 5, 2021 20:43
Raycast Yubico OTP script command
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title yubico-oath
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🔑
# @raycast.argument1 { "type": "text", "placeholder": "Account name" }
@natikgadzhi
natikgadzhi / gh-import.sh
Created November 27, 2021 18:18
github-bulk-projects-import.sh
# !/bin/bash
# gh-import grabs issues with the query from the given repo,
# and imports them to the given GitHub project (beta).
# Your github organization goes here
GH_ORG=
# repository name to import issues from, i.e. org/repo
GH_REPO=$GH_ORG/
@natikgadzhi
natikgadzhi / keybase.md
Last active August 16, 2017 23:35
keybase.md

Keybase proof

I hereby claim:

  • I am xnutsive on github.
  • I am xnutsive (https://keybase.io/xnutsive) on keybase.
  • I have a public key ASD_Zsj86ksRZMfrOxUkBp-_1-Ph1jXdswDxN0ttHQbjLwo

To claim this, I am signing this object:

@natikgadzhi
natikgadzhi / open-alexa-rank.applescript
Created October 27, 2016 06:30
Applescript to open Alexa Rank for current Safari tab
property theURL : ""
on run {input, parameters}
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "Safari"
open location "http://www.alexa.com/siteinfo/" & theURL
end tell
(defn make-path
"Assembles a URI path from the provided pieces"
[& parts]
(string/join "/" (concat (list api-url api-version) parts)))
(defn check-errors
"Checks response for common Chain.com API errrors"
[response]
@natikgadzhi
natikgadzhi / .vimrc
Created July 9, 2015 11:34
Ctrl-P speedup indexing with Ag
let g:ctrlp_cache_dir = $HOME . '/.cache/ctrlp'
if executable('ag')
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
endif
@natikgadzhi
natikgadzhi / fb graph api response
Created March 27, 2015 15:52
fb graph api photo status issue
https://graph.facebook.com/v2.3/10206104171986285?field=status_type&access_token=CAADMZAudlPKgBAKHKg7nEDVdejlG8pQXf1z8yaqEIAaMbVZBwrTo1omJdQn7mgdvE2wLWFJCTJV8CoPgUbcxH1GpTFWOQnqsj6idErjDUIXXgBimXv0a4DSfsBrET0DRf4QhvKpsEDXOxVF3dZCNNKKuKFPpzRGY5hz2J8iZCq7PaZA7td5OgGW4IyJgGRARZBfj8qYXswpOU44i10m008
{
"id": "10206104171986285",
"created_time": "2015-03-27T00:26:17+0000",
"from": {
"id": "1322232597",
"name": "Alexey Gaziev"
},
"height": 640,
describe "validation" do
%w(http://test.com https://test.com itns://something).each do |uri|
it "should allow valid uri: #{uri}" do
banner = FactoryGirl.build(:banner, url: uri, enabled: true)
expect(banner).to be_valid
end
end
["shit happens", "alsow12414@@!!!wrong", "", nil].each do |uri|
it "should disallow valid uri: #{uri}" do
Error: Integer, String or Tuple value expected, External found at `artist_show': line 269, column 36
       {% assign albums = compact(albums + [artist.primary_photoalbum]) %}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^