So you have know something about git: you have create a repository on GitHub,
cloned
it to your computer, coded a bit and committed commits.
Maybe even you have tried to create a new branch
and merged
it back.
Everything looks so nice,
until you dug a litter deeper.
Where do you push
to and pull
from?
What is fork
? What about “pull request”?
What is it’s relationship to pull
? what is all this mess?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; uikit.el --- UI kit for Emacs | |
;;; Commentary: | |
;; | |
;;; Code: | |
;; | |
(require 'eieio-base) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Roman-Accent-f</key> | |
<dict> | |
<key>Direction</key> | |
<string>right</string> | |
<key>Strings</key> | |
<string>α β γ δ ε η θ </string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>phrase</key> | |
<string>Α</string> | |
<key>shortcut</key> | |
<string>alpha</string> | |
</dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- key to break out of every layer and back to normal | |
escapeKey = {keyNone, 'escape'} | |
-- max length of helper measured in character | |
recursiveBindHelperMaxLineLengthInChar = 80 | |
-- format of helper, the helper is just a hs.alert | |
recursiveBindHelperFormat = {atScreenEdge=2, | |
strokeColor={ white = 0, alpha = 2 }, | |
textFont='SF Mono'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun change-macro-in-buffer (str) | |
"change-macro-in-buffer(STR) | |
Change all defmacro's name that follows macro! convention to macro(STR) convention. | |
For example, macro! to macro|. | |
In a word, change all the \"!\"s in macro name to STRs. | |
Because exclamation marks makes my uncomfortable and I can." | |
(while (re-search-forward "defmacro.+?!" nil t) | |
(replace-match (replace-regexp-in-string "!" str (match-string 0))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <netinet/in.h> | |
#include <ifaddrs.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <unistd.h> | |
#include <miniupnpc/miniupnpc.h> | |
#include <miniupnpc/upnpcommands.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Documentation: https://docs.brew.sh/Formula-Cookbook.html | |
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula | |
class Libpcp < Formula | |
desc "PCP client library" | |
homepage "https://github.com/libpcp/pcp" | |
url "https://github.com/libpcp/pcp/archive/master.zip" | |
version "0.0.1" | |
sha256 "5057f6cdc596c49f06d6f77ada82429452b0294d03f53ab32e8d3e3fbf201b37" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After several days experiment, I finally connected my RPi to psu wireless. | |
# Hope this helps anyone with the same issue | |
# Note: to convert the downloaded .der certidifate to .pem format, | |
# use `openssl x509 -inform der -in certificatename.der -out certificatename.pem` as provided at https://search.thawte.com/support/ssl-digital-certificates/index?page=content&actp=CROSSLINK&id=SO26449 | |
network={ | |
ssid="psu" | |
key_mgmt=WPA-EAP | |
eap=TTLS |
- Creating self signed certificate
- Using ssl in python server
- Using ssl in requests