Skip to content

Instantly share code, notes, and snippets.

View wildcard's full-sized avatar
🥳
Getting my groove on

Kobi Kadosh wildcard

🥳
Getting my groove on
View GitHub Profile
@wildcard
wildcard / NFTixBooth.sol
Created April 24, 2022 11:20 — forked from ryancharris/NFTixBooth.sol
Final smart contract from my Egghead NFT course
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./Base64.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
@wildcard
wildcard / generate-yml-from-find.sh
Last active February 10, 2022 20:25
Generate yml directives from md files using find
#!/usr/bin/env bash
find . -name '*.md' | sort | xargs -IFILE echo "{ \"file\": \"FILE\", \"title\": \" $( basename 'FILE' ) \" }" | jq -s '.' | yq e -P
@wildcard
wildcard / ya.py
Last active April 12, 2024 13:23 — forked from Yegorov/ya.py
Download file from Yandex.Disk through share link for large file + reconnect option on MacOS with caffeinate to prevent computer from sleep
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://toster.ru/q/72866
# How to
# wget http://gist.github.com/...
# chmod +x ya.py
# ./ya.py download_url path/to/directory
import os, sys, json
@wildcard
wildcard / sentry.5m.sh
Created January 30, 2021 11:27
sentry bitbar plugin bash implementation
#!/usr/bin/env bash
SERVICE=""
ISSUE_COUNT=5
ORG=""
PROJECT_URL="https://app.getsentry.com/$ORG/$SERVICE"
TOKEN=""
echo "Sentry"
echo "---"
@wildcard
wildcard / GPG and git on macOS.md
Created August 12, 2020 10:52 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@wildcard
wildcard / example-html-wireframe.markdown
Created January 16, 2019 16:58
Example HTML Wireframe
@wildcard
wildcard / mnist.ipynb
Last active October 12, 2018 23:25
mnist.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wildcard
wildcard / cow.fish
Last active May 19, 2018 12:49 — forked from mariuszs/cow.fish
Fishshell random cowsay
fortune -s | cowsay -f (cowsay -l | tail -n +2 | tr ' ' '\n' | gshuf -n 1)
_______________
/ Universe, n.: \
| |
\ The problem. /
---------------
\ ^___^
\ (ooo)\_______
@wildcard
wildcard / trello.30m.sh
Created August 17, 2017 13:40
Show Trello list cards in bitbar
#!/bin/bash
JQ=/usr/local/bin/jq
export $(egrep -v '^#' ~/.bitbar/.env | xargs)
TRELLO_API="https://api.trello.com/1"
TRELLO_AUTH_QS="key=$TRELLO_DEVELOPER_PUBLIC_KEY&token=$TRELLO_MEMBER_TOKEN"
TRELLO_LIST_ID=$(curl -s --request GET --url "$TRELLO_API/boards/$TRELLO_BOARD_ID/lists?$TRELLO_AUTH_QS" | $JQ ".[] | { name: .name, id: .id, match: (.name == \"$TRELLO_LIST_NAME\") } | select (.match) | .id" -r)
TRELLO_LIST=${TRELLO_LIST_ID:-$TRELLO_LIST_DEFAULT}
@wildcard
wildcard / jss-important.js
Last active April 16, 2017 13:10
updated for JSS version 7.0.3
import { endsWith, has, forEach, isString, isNumber } from 'lodash'
import cloneStyle from 'jss/lib/utils/cloneStyle'
const IMPORTANT = '!important'
function makeImportant(value) {
return endsWith(value, IMPORTANT) ? value : value + ' ' + IMPORTANT
}
export default ({important: importantByDefault = true} = {}) => {
return {