Get a shell in a k8s pod: kubectl exec -it gitlab-gitlab-12345-asdf -- /bin/bash
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
PS C:\Users\skatz> C:\salt\salt-call.bat --local -l debug psget.avail_modules | |
[DEBUG ] Reading configuration from c:\salt\conf\minion | |
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf' | |
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf | |
[DEBUG ] Configuration file path: c:\salt\conf\minion | |
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged. | |
[DEBUG ] Reading configuration from c:\salt\conf\minion | |
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf' | |
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf | |
[DEBUG ] Determining pillar cache |
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
PS C:\Users\skatz> C:\salt\salt-call.bat --local -l debug psget.avail_modules | |
C:\salt\salt-call.bat : [DEBUG ] Reading configuration from c:\salt\conf\minion | |
At line:1 char:1 | |
+ C:\salt\salt-call.bat --local -l debug psget.avail_modules | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: ([DEBUG ] Read...alt\conf\minion:String) [], RemoteException | |
+ FullyQualifiedErrorId : NativeCommandError | |
[DEBUG ] Including configuration from 'c:\salt\conf\minion.d\_schedule.conf' | |
[DEBUG ] Reading configuration from c:\salt\conf\minion.d\_schedule.conf |
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
PS C:\Users\skatz> C:\salt\salt-call.bat --local chocolatey.install psget | |
local: | |
Chocolatey v0.10.5 | |
Installing the following packages: | |
psget | |
By installing you accept licenses for the packages. | |
psget v1.0.4.407 already installed. | |
Use --force to reinstall, specify a version to install, or try upgrade. | |
Chocolatey installed 0/1 packages. 0 packages failed. |
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
msg: http://lunchlady.neverware.com/centos/6/updates/repodata/1e07fe299b6b8246f02eae9fcb583c793da533ab23c1c33f842d7322e7ab424f-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" | |
Trying other mirror. | |
Error: failure: repodata/1e07fe299b6b8246f02eae9fcb583c793da533ab23c1c33f842d7322e7ab424f-filelists.sqlite.bz2 from updates: [Errno 256] No more mirrors to try. |
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
GIST |
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
diff --git a/dispatch.py b/dispatch.py | |
index ba7c064..fd5f136 100644 | |
--- a/dispatch.py | |
+++ b/dispatch.py | |
@@ -1,29 +1,36 @@ | |
import requests | |
import json | |
-base_url = 'http://maps.googleapis.com/maps/api/distancematrix/json' | |
+class Client(object): |
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
To learn you really you need to do it a while. But we'll discuss some techniques that are helpful. | |
Starting: | |
clone (always, if you want to study) | |
git ls-files, skim, to see where code is | |
Finding where some feature is implemented, bottom up: | |
usually the easiest way to find anything specific | |
demo example: CPython, __add__ | |
grep, preferably git grep, or grep foo -- $(find . -name \*.c) etc. |
I hereby claim:
- I am phsteve on github.
- I am katz (https://keybase.io/katz) on keybase.
- I have a public key whose fingerprint is 1D0C 64CA 0D92 3DFC 297A 5D43 ECD4 3433 A588 AE06
To claim this, I am signing this object:
NewerOlder