You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ### | |
# | |
# Officially, this is not recommended. YMMV | |
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/ | |
# | |
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit | |
# | |
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels | |
# |
#!/bin/bash | |
# Helpful wrapper that uploads takes a single optional commit (defaulting to HEAD) and uploads | |
# the patch to cr with the subject and description based on the git commit message. This is | |
# useful if your workflow involves keeping a single commit that you intend to push per review, | |
# and modifying the commit based on feedback. This script is traditionally called {{cruc}}. | |
# Any additional arguments are passed directly to the upload script so you can still use {{-i issue_number}}. | |
UPLOAD_SCRIPT=fill | |
JIRA_USER=me |
# prefixキーをC-tに変更する | |
set -g prefix C-t | |
# C-bのキーバインドを解除する | |
unbind C-b | |
# キーストロークのディレイを減らす | |
set -sg escape-time 1 | |
# ウィンドウのインデックスを1から始める |
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
$ brew install unbound ldns
unbound.conf
:<VirtualHost *> | |
ServerName auth.dev | |
DocumentRoot "/var/www/auth" | |
ProxyPassMatch ^(/.*\.php)$ fcgi://127.0.0.1:9000/var/www/auth | |
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 | |
</VirtualHost> |
package example; | |
import com.mysql.jdbc.Driver; | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import java.util.Properties; | |
public class ConnectionManager { |