Skip to content

Instantly share code, notes, and snippets.

View Naoto-Ida's full-sized avatar
🐞
Learning Rust atm

Naoto Ida Naoto-Ida

🐞
Learning Rust atm
View GitHub Profile
@Naoto-Ida
Naoto-Ida / buergerbot.rb
Created May 28, 2021 12:29 — forked from xuio/buergerbot.rb
Bürgerbot: Refreshes the Berlin Bürgeramt page until an appointment becomes available, then notifies you via Telegram
#!/usr/bin/env ruby
require 'watir-webdriver'
require 'telegram/bot'
Telegram.bots_config = {
default: '<Telegram Bot token>',
}
Telegram.bot.get_updates
@Naoto-Ida
Naoto-Ida / Mac
Created December 22, 2019 02:18
Useful aliases
alias mutestartup="sudo nvram SystemAudioVolume=%80"
alias unmutestartup="sudo nvram -d SystemAudioVolume"
@Naoto-Ida
Naoto-Ida / gist:e6f89f8c69c38e9962bde573de27be13
Created November 22, 2016 02:58
Easiest way of getting app name, etc. for React Native app
const pkg = require('./package.json')
const {
name,
version,
dependencies,
} = pkg
@Naoto-Ida
Naoto-Ida / gist:c78179676fad0ab5e6ee
Created December 14, 2015 05:37
Allows HTML tags such as <span> to be used in post for Telescope
Telescope.utils.sanitize = function(s) {
return s;
};