- Bump version in source file
git commit --allow-empty -m "vX.Y.Z"git tag --sign vX.Y.Z -m "vX.Y.Z"git push && git push --tags
This file contains hidden or 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
| curl -vvv -X PATCH --data "{\"votes\":[1]}" --header "Content-Type: application/json" "http://litepoll.com/polls/ID" |
This file contains hidden or 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
| [core] | |
| excludesfile = ~/.gitignore_global | |
| editor = gvim | |
| autocrlf = false | |
| safecrlf = false | |
| [user] | |
| email = [email protected] | |
| name = Chris Schmich | |
| [push] | |
| default = current |
This file contains hidden or 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" ?> | |
| <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <Title>dw</Title> | |
| <Shortcut>dw</Shortcut> | |
| <Description>Code snippet for Debug.WriteLine</Description> | |
| <Author>Chris Schmich</Author> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> |
This file contains hidden or 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
| [core] | |
| excludesfile = ~/.gitignore_global | |
| editor = mvim --nofork | |
| [user] | |
| email = [email protected] | |
| name = Chris Schmich | |
| [push] | |
| default = current | |
| [alias] | |
| br = branch --list -vv |
This file contains hidden or 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
| <?php | |
| ini_set('error_reporting', E_ALL); | |
| ini_set('display_errors', '1'); |
This file contains hidden or 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
| require 'pp' | |
| require 'set' | |
| winner = [Set.new([4, 8, 19, 27, 34]), 10] | |
| tickets = File.open('numbers.txt').readlines.map { |line| | |
| numbers = line.scan(/\d+/).map { |n| n.to_i } | |
| [Set.new(numbers.take(5)), numbers[numbers.length - 1]] | |
| }.to_a |
This file contains hidden or 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
| sudo echo 192.168.1.42 webserver >> /etc/hosts | |
| sudo cat >> ~/.ssh/config <<EOF | |
| Host webserver 192.168.1.42 | |
| User user1 | |
| Hostname webserver | |
| IdentityFile ~/.ssh/id_rsa | |
| EOF | |
| cat ~/.ssh/id_rsa.pub | (ssh user@webserver "mkdir -p .ssh && cat >> ~/.ssh/authorized_keys") | |
| git init project | |
| cd project |
I hereby claim:
- I am schmich on github.
- I am schmich (https://keybase.io/schmich) on keybase.
- I have a public key whose fingerprint is 6A81 AFFA A3E3 63E9 E308 5E5E 0C7C 2CE3 2BB3 2877
To claim this, I am signing this object:
- Create an 8192-bit SSH-2 RSA key
ssh-keygen -t rsa -b 8192 -f id_rsa -C "[email protected]"
chmod 400 id_rsa*
mv -i id_rsa* ~/.ssh
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- Disallow password-based login
- Edit
/etc/ssh/sshd_config
- Edit
- Add
PasswordAuthentication no