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
echo "alias config='/usr/bin/git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME'" >> ~/.bashrc | |
git clone --bare https://github.com/alovak/.dotfiles.git $HOME/.dotfiles | |
git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME config --local status.showUntrackedFiles no | |
echo ".dotfiles repo cloned. Reload bash to use `config` command" |
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
package network | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"io" | |
"math" | |
) |
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
NEWLINE=$'\n' | |
PROMPT='%{$fg[cyan]%}%~%{$reset_color%} $(git_prompt_info)${NEWLINE}' | |
PROMPT+="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}[%{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$fg[blue]%}]" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}]" |
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
package main | |
import ( | |
"github.com/moov-io/iso8583" | |
"github.com/moov-io/iso8583/encoding" | |
"github.com/moov-io/iso8583/field" | |
"github.com/moov-io/iso8583/prefix" | |
) | |
func NewSpec() *iso8583.MessageSpec { |
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
#!/usr/bin/env ruby | |
# this file fixes links inside html pages to other notion pages | |
# E.g.: | |
# <a href="Notion-aaaaaaaa-bbbb-cccc-dddd-bbbbbbbbbbbbb">xxx</a> | |
# into | |
# <a href="aaaaaaaa-bbbb-cccc-dddd-bbbbbbbbbbbbb.html">xxx</a> | |
require 'bundler/inline' |
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
[{"slug"=>"tray-io", "active"=>true, "company"=>"tray.io", "category_name"=>"Automation", "category_slug"=>"automation", "description"=>"The Tray Platform offers cloud stack integration and flexible automation, with an easy-to-use visual editor that empowers business users to build efficient workflows without the need for expensive development resources and enterprise-grade security with PCI Compliance and SOC 2 certification.", "description_html"=>"The Tray Platform offers cloud stack integration and flexible automation, with an easy-to-use visual editor that empowers business users to build efficient workflows without the need for expensive development resources and enterprise-grade security with PCI Compliance and SOC 2 certification.", "how_it_works"=>"Use the Tray Platform to integrate Stripe with the rest of your stack. Flow important payment data between Stripe and your CRM, marketing platform, helpdesk, and other apps for marketing, sales, support, finance, and HR operations. Visit Tray.io to explore |
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
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Demo Page</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="https://js.verifypayments.dev/sdk.js"></script> | |
<script src="main.js"></script> | |
</head> | |
<body> |
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
version: '2' | |
services: | |
postgres: | |
image: 'postgres:9.6-alpine' | |
environment: | |
POSTGRES_USER: 'user' | |
POSTGRES_PASSWORD: 'pass' | |
ports: | |
- '5432:5432' |
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
a = (1..100).to_a.rotate 7 | |
x = 2 | |
steps = 0 | |
n = 0 | |
l = 0 | |
r = a.length | |
while true do | |
steps+=1 |
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
// Install library before: | |
// > npm install node-rest-client | |
// | |
// More information about rest client: https://www.npmjs.com/package/node-rest-client | |
var Client = require('node-rest-client').Client; | |
var client = new Client({ user: "YOUR SECRET API KEY GOES HERE" }); | |
var args = { |
NewerOlder