Skip to content

Instantly share code, notes, and snippets.

View michalvalasek's full-sized avatar

Michal Valasek michalvalasek

View GitHub Profile
@starenka
starenka / gist:34b8213f6592f550024570de3f2fd025
Last active December 16, 2022 00:18
quesada pasiega casera
1 reckej jogurt (cca 125g)
2 vejce
50g masla
180g (trtinovyho) cukru
150g hladky mouky
0.5l plnotucnyho mlika
skorice, citron
rozmicham jogurt s vejcema, povolenym maslem a cukrem. pridam mliko, stavu z pulky
citronu. az to bude absolutne bez hrudek, pres sitko pomalu vmichavam mouku. pridam trochu
@kwsch
kwsch / gist:24b527c4aa63f42c9132e7b7c76ce08d
Created January 27, 2022 14:19
PLA - Stats & Learnsets (All)
This file has been truncated, but you can view the full file.
======
000 - Egg (Stage: 0)
======
Present: No
Base Stats: 0.0.0.0.0.0 (BST: 0)
EV Yield: 0.0.0.0.0.0
Gender Ratio: 255
Catch Rate: 0
Abilities: — (1) | — (2) | — (H)
Type: Normal
@TallonRain
TallonRain / config.fish
Last active February 14, 2025 04:08
Set up Fish Shell to use gpg-agent as the SSH agent for Yubikeys and other smart cards
# Add these contents to ~/.config/fish/config.fish
# If using Brew, config.fish is located in /usr/local/Cellar/fish/[version]/etc/fish/
# Generally recommend using the installer from https://fishshell.com instead of brew
# to avoid version updates overwriting the config file
# Start or re-use a gpg-agent.
gpgconf --launch gpg-agent
# Ensure that GPG Agent is used as the SSH agent
set -e SSH_AUTH_SOCK
@michalvalasek
michalvalasek / .chunkwmrc
Created May 1, 2018 13:53
chunkwm configuration
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#
@baweaver
baweaver / ruby_tricks.rb
Created February 14, 2018 07:50
Having fun with M and Q
# A few fun tricks right quick. Note that more tricks like this are over at:
# https://medium.com/rubyinside/triple-equals-black-magic-d934936a6379
#
# I'll probably condense this into a blog post later, but for now we'll have our fun.
# 1 - "Pattern Matching" with case
# We make a new lambda named M for brevity. Because it can be called with `[]` it
# looks quite natural in flow with a case statement.
#
@bryanhelmig
bryanhelmig / nintendo-switch-getter.py
Created March 23, 2017 01:24
A script that watches prime now for stock, sending a webhook to Zapier which you can configure to send you an SMS, Slack, whatever...
import time
import bs4
import requests
import logging
import sys
logger = logging.getLogger('switchlogger')
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler(sys.stdout)
{:duct.logging/timbre
{:level :info
:appenders {:println #ref :duct.logging.timbre/println}}
:duct.logging.timbre/println
{:stream :auto}
:duct.server/jetty
{:port 3000
:handler #ref duct.bridge/handler}
#!/usr/bin/sudo ruby
#
# revealer.rb -- Deobfuscate GHE .rb files.
#
# This is simple:
# Every obfuscated file in the GHE VM contains the following code:
#
# > require "ruby_concealer.so"
# > __ruby_concealer__ "..."
@henrik
henrik / macos_sierra_upgrade.md
Last active February 28, 2017 21:25
macOS Sierra update: Ruby, Rails, homebrew, VirtualBox/Vagrant, Elixir etc.

My notes from updating to macOS Sierra, as a Ruby/Rails developer working in VirtualBox/Vagrant.

Homebrew

brew doctor told me to fix /usr/local ownership:

sudo chown -R $(whoami) /usr/local

It also said Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool.

@scrogson
scrogson / README
Last active March 13, 2020 13:56 — forked from ciastek/README
Use bootstrap-sass npm package with Phoenix's brunch
1) install npm packages
2) update brunch-config.js
3) remove Bootstrap from web/static/css/app.css
4) rename web/static/css/app.css to web/static/css/app.scss
5) update web/static/css/app.scss