Skip to content

Instantly share code, notes, and snippets.

@mendoza
mendoza / README.md
Created January 10, 2020 06:43
Just a quick README template

[Repo name] made with ❤️,☕ and some 🍺

[here we add the necesary badges, here are the ones I say we always need]

License Issues forks stars size

[short description of the repo]

this app is made for myself

@ryo-ARAKI
ryo-ARAKI / starship.toml
Last active April 28, 2024 23:14
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = ""
[[battery.display]]
threshold = 30
style = "bold red"
#!/usr/bin/env ruby
# Usage: tweetsplit.rb < tweetstorm.txt
# https://twitter.com/CoralineAda/status/869204799027372032
# Sam Stephenson / 2017-05-29
# Tweet-sized version:
# puts $<.read.split(/\s+/).reduce(nil){|(*cs,c),w|n=[c,w].compact*" ";cs+(n.size>140?[c,w]:[n])}*"\n"
def chunks_for(words, chunk_size)
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 9, 2024 20:00
Hyperlinks in Terminal Emulators
@Azgaar
Azgaar / .block
Last active November 22, 2023 14:26
Fantasy Map Generator
license: gpl-3.0
height: 570
border: no

Follow the dirty money

A shady Internet business has been discovered.

The website has been made public by a whistle blower. We have enough evidence about the dirty deals they did. But to charge them we need to get hands on precise numbers about the transactions that happened on their platform.

Unfortunately no record of the transactions could be seized so far. The only hint we have is this one transaction:

EXP_NPC_ANOMALY_DESC_1
As I approach the electronic being, it springs to life. From its dark mask, scanning beams emerge that envelop me. There is a unnerving chittering sound and then, unbelievably, it speaks in my language.
It offers me a choice. It can show me how to harness black holes, in order to embark upon a journey to the centre of the galaxy. It can light my way to an Atlas Interface, so I may follow a path. Or it will assist me in my own exploration.
EXP_NPC_ANOMALY_LANG_1
Rare linguistic form. Pleasure! Nada, divergent Korvax. Assistance offered. Route to galactic core? Reconnect with Atlas for guidance? Resources for journey? Yes/no?
EXP_NPC_ANOMALY_DESC_2
@gitFurious
gitFurious / gist:cff8a09f244d7c880e8554b2f0b4efa5
Created August 15, 2016 13:35
No Man's Strings - \LANGUAGE\NMS_LOC1_ENGLISH.MBIN
SCAN_NO_TECH
No scan technology installed
SCAN_BROKEN
Scanner is critically damaged
SCAN_RECHARGE
Scanner recharging
WARP_MSG
@bkozora
bkozora / lambdaAMIBackups.py
Last active October 22, 2023 20:49
AWS Lambda AMI Backups
# Automated AMI Backups
#
# @author Bobby Kozora
#
# This script will search for all instances having a tag with the name "backup"
# and value "Backup" on it. As soon as we have the instances list, we loop
# through each instance
# and create an AMI of it. Also, it will look for a "Retention" tag key which
# will be used as a retention policy number in days. If there is no tag with
# that name, it will use a 7 days default value for each AMI.
@chrisroos
chrisroos / README.md
Last active November 25, 2023 07:00
Example of using bundler/inline

I came across 'bundler/inline' in Bundler pull request 3440, which I'd found from Rails pull request 20429. This now has a little snippet on the What's new page of the Bundler site.

This little example demonstrates how I might use it to create a single file using minitest.

I've just noticed that this script was working for me because I already had minitest installed as a system gem. If I uninstall the gem then the script fails because it can't find minitest. The source code documents an option to install gems if they don't exist (gemfile(true) do) but that doesn't seem to work for me. I see the following error:

Fetching gem metadata from https://rubygems.org/...
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...

Using metaclass 0.0.4