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
#n is the total amount, L is the list of change denominations. | |
def change(n, L): | |
if n < 0: | |
return 0 | |
if n == 0: | |
return 1 | |
if L == []: | |
return 0 | |
return change(n, L[:-1]) + change(n-L[-1], L) |
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
#The Collatz sequence is defined by the following rules on the set of positive numbers: | |
# n -> n/2 if n is even | |
# n -> 3n + 1 if n is odd | |
#Starting with 13, the sequence proceeds: | |
# 13 - 40 - 20 - 10 - 5 - 16 - 8 - 4 - 2 - 1 | |
#Which starting number, under 1,000,000 produces the longest chain? |
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
#!/usr/bin/python | |
#This is a program to calculate payouts for horse racing. The user is prompted | |
#for the names of the horses, then the names of the bettors, then for any number | |
#of bets. At the end, it displays the winnings of each bettor. | |
#It uses parimutuel-style betting, where the odds for each horse are calculated | |
#by dividing the total amount bet on all the horses by the amount bet on the | |
#specific horse. The people who have bet on a winning horse divide up all the | |
#money bet in proportion to the relative amount of their respective bets on the |
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 |
NewerOlder