-
"Disk İzlencesi" kullanılır
-
"Apple SSD" diski olası hatalara karşı öncelikle onarılmalıdır
- "İlk yardım" menüsü ile onarım yapılır
# munge PATH | |
pathmunge() { | |
case ":${PATH}:" in *:"$1":*) return 0 ;; esac | |
[ "$2" = after ] && PATH=$PATH:$1 || PATH=$1:$PATH | |
} |
package main | |
import ( | |
"bytes" | |
"fmt" | |
bf "gopkg.in/russross/blackfriday.v2" | |
) | |
func main() { |
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/openpgp" | |
"os" | |
) | |
func main() { | |
keyRingReader, err := os.Open("signer-pubkey.asc.txt") |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type unlocked struct { | |
i int | |
} |
These commands are needed every time you want to generate a new certificate signing request to give to an authority in order for them to generate and sign a certificate for you.
https://letsencrypt.org/ solves a lot of the pain involved with SSL certs, but sometimes you still need to go the "old school" route. I constantly forget how this stuff works, so I collected the most important commands (and what they do) here for easy copy & paste.
Kullanıcıya görüntülenen iletilerin İngilizce olduğu olağan bir Ruby yazılımı düşünün. Örneğin böyle bir yazılımda kullanıcıya görüntülenen bir hoşgeldin iletisi aşağıdakine benzer bir şekilde gerçeklenir:
puts "Welcome!"
=> Welcome!
Türk kullanıcılar gözönüne alınarak yazılımın aynı iletileri Türkçe olarak
görüntülemesi için tr
adında bir çeviri modülü geliştirileceğini varsayalım.
Bu modül kullanıldığında yazılımdaki İngilizce ileti görüntüleyen tüm satırlarda
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'forwardable' | |
module MultipleChoice | |
module Choice | |
CHOICES = (:a..:e).to_a | |
refine Symbol do |
curl -s "$url" | tar -zxC "$dest" |
#!/bin/sh | |
# OPTIONAL FLAGS: | |
# | |
# -geoip true | |
# this will install maxmind geoip and auto update crontab file | |
# | |
# -cloudwatch true | |
# this will install aws cloud watch metrics and send them to aws dashboard | |
# |