Skip to content

Instantly share code, notes, and snippets.

View zaccone's full-sized avatar
💾
Focusing

Marek Denis zaccone

💾
Focusing
View GitHub Profile
#!/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"
#!/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 = "****"
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()
@zaccone
zaccone / adfs-client.py
Created October 20, 2014 07:57
adfs cli
#!/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'
#!/usr/bin/env python3
def f(l=[]):
print(len(l))
l.append(0)
f()
f()
f()
#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";
{ "rules":
[
{
"local": [
{
"user": {
"id": "maro"
}
},
{
{
"group_ids": [],
"user": {
"domain": {
"id": "Federated"
},
"type": "ephemeral",
"id": "maro"
},
"group_names": [
eppn:[email protected]
GROUPS:Electrons;Muons;Neutrino;Protons;Quarks
#!/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