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
| #!/usr/bin/env python | |
| import pdb | |
| import requests | |
| from keystoneclient.contrib.auth.v3 import saml2 | |
| from keystoneclient import session | |
| from keystoneclient.v3 import client | |
| IDENTITY_PROVIDER = 'testshib' | |
| IDENTITY_PROVIDER_URL = "https://idp.testshib.org/idp/profile/SAML2/SOAP/ECP" |
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
| #!/usr/bin/env python | |
| import pdb | |
| import requests | |
| from keystoneclient.contrib.auth.v3 import saml2 | |
| from keystoneclient import session | |
| from keystoneclient.v3 import client | |
| IDENTITY_PROVIDER = '*****' | |
| IDENTITY_PROVIDER_URL = "****" |
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
| class A(object): | |
| def __init__(self): | |
| self.zmienna = 'konstruktor' | |
| def run(self): | |
| self._run = 'run' | |
| def attrs(self): | |
| setattr(self, '_attrs', 'wartość') | |
| a = A() | |
| a.run() |
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
| #!/usr/bin/env python | |
| import requests | |
| from keystoneclient.contrib.auth.v3 import saml2 | |
| from keystoneclient import session | |
| # project id you want to scope to | |
| VALID_PROJECT_ID = 'your_project_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
| #!/usr/bin/env python3 | |
| def f(l=[]): | |
| print(len(l)) | |
| l.append(0) | |
| f() | |
| f() | |
| f() |
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
| #include <stdio.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #define BUF_SIZE 128 | |
| int main() { | |
| char *path= "/tmp/file"; |
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
| { "rules": | |
| [ | |
| { | |
| "local": [ | |
| { | |
| "user": { | |
| "id": "maro" | |
| } | |
| }, | |
| { |
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
| { | |
| "group_ids": [], | |
| "user": { | |
| "domain": { | |
| "id": "Federated" | |
| }, | |
| "type": "ephemeral", | |
| "id": "maro" | |
| }, | |
| "group_names": [ |
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
| eppn:[email protected] | |
| GROUPS:Electrons;Muons;Neutrino;Protons;Quarks |
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
| #!/bin/sh | |
| apt-get -y update | |
| apt-get -u upgrade | |
| apt-get -u autoremove | |
| apt-get -u clean | |
| apt-get -u dist-upgrade | |
| do-release-upgrade |