Skip to content

Instantly share code, notes, and snippets.

View JuryA's full-sized avatar

Jiří Altman JuryA

View GitHub Profile
@JuryA
JuryA / docker.sh
Last active January 31, 2019 09:03
Linux Shell script - Docker state DUMP
#!/bin/bash
##################################
# Docker Machines #
##################################
if [ "$debugging" -gt "0" ] && [ -n $(which docker 2>/dev/null)]; then
echo "Docker Info"
fi
PREVIFS=$IFS
IFS="$NEWLINEIFS";
for line in $(docker ps -a --format "{{.ID}}\t{{.Names}}\t{{.Status}}" 2>/dev/null); do
@JuryA
JuryA / GitHub-GraphQL-PowerBI.m
Created May 14, 2019 14:22 — forked from petrsvihlik/GitHub-GraphQL-PowerBI.m
Loading GraphQL data (GitHub API v4) into PowerBI
// This script shows how to use M language (Power Query Formula Language)
// to read data from GitHub API v4 using a POST request.
// This can come in handy when building PowerBI reports that utilize GraphQL endpoints for loading data.
let
Source = Web.Contents(
"https://api.github.com/graphql",
[
Headers=[
#"Method"="POST",
http://www.mercishop.cz/zbozi/z1632426224950-banka-destilacni-kulate-dno-simax-2000-ml-2-sikme-postranni-tubusy-s-nz/
http://www.mercishop.cz/zbozi/z1632426224958-banka-destilacni-kulate-dno-simax-6000-ml-2-sikme-postranni-tubusy-s-nz/
http://www.mercishop.cz/zbozi/z1632426207941-banka-kuzelova-erlenmeyerova-s-nz-1000-ml-4540-simax/
http://www.mercishop.cz/zbozi/z1632426207950-banka-kuzelova-erlenmeyerova-s-nz-2000-ml-2932-simax/
http://www.mercishop.cz/zbozi/z1632426707945-banka-sulfonacni-3-postranni-tubusy-simax-1500-ml/
http://www.mercishop.cz/zbozi/z1632424011112-desky-fritove-filtracni-kruhove-na-obvodu-brousene-s1-simax-120-mm/
http://www.mercishop.cz/zbozi/z1632424011212-desky-fritove-filtracni-kruhove-na-obvodu-brousene-s2-simax-120-mm/
http://www.mercishop.cz/zbozi/z1632424011312-desky-fritove-filtracni-kruhove-na-obvodu-brousene-s3-simax-120-mm/
http://www.mercishop.cz/zbozi/z1610002516204/
http://www.mercishop.cz/zbozi/z1331588040609-hadice-ptfe-68-mm/
@JuryA
JuryA / backends.py
Created June 30, 2019 03:40 — forked from nikolaik/backends.py
django-auth-ldap email or username authentication
from django_auth_ldap.backend import LDAPBackend, _LDAPUser
class LDAPUsernameBackend(LDAPBackend):
settings_prefix = "AUTH_LDAP_U_"
class LDAPEmailBackend(LDAPBackend):
settings_prefix = "AUTH_LDAP_E_"
@JuryA
JuryA / Install-ChocoAndScoop.ps1
Created August 16, 2019 15:40 — forked from Jeff-Lewis/Install-ChocoAndScoop.ps1
Install Chocolatey and Scoop package managers for Windows + basic set of utilities and software
Function Install-Scoop {
New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" `
-propertyType ExpandString `
-name "SCOOP_GLOBAL" `
-value "${ENV:PROGRAMDATA}\scoop"
Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression
'scoop install Git-with-OpenSSH Sudo Which --global' | Set-Content -path temp_script.ps1
@JuryA
JuryA / slack_history.py
Created August 28, 2019 11:17 — forked from Chandler/slack_history.py
Download Slack Channel/PrivateChannel/DirectMessage History
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#!/bin/bash
echo "Hello world!"
Verifying that "jaltman.id" is my Blockstack ID. https://explorer.blockstack.org/name/jaltman.id
@JuryA
JuryA / AutoPilot.ps1
Last active October 12, 2019 14:29
Microsoft AutoPilot automatic registration script - to run it use:RAW content of **`AutoPilot.ps1`**: [https://git.io/OAP](https://git.io/OAP)Automatic WebInstaller (_works with Internet Explorer or special add-ones_): [https://cutt.ly/osmec](htt
# Installation of appropriate script from https://www.powershellgallery.com/packages/Upload-WindowsAutopilotDeviceInfo/
Install-Script -Name Upload-WindowsAutopilotDeviceInfo -Force:$true
Upload-WindowsAutopilotDeviceInfo -TenantName osmec.onmicrosoft.com -OrderIdentifier 'AssignedPC' -Confirm:$false
# Upload-WindowsAutopilotDeviceInfo -TenantName osmec.onmicrosoft.com -OrderIdentifier 'SharedPC' -Confirm:$false
# Upload-WindowsAutopilotDeviceInfo -TenantName osmec.onmicrosoft.com -OrderIdentifier 'SharedEduPC' -Confirm:$false
# Start-Process -FilePath '%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe'
Install-Module CredentialsManager -scope CurrentUser