Skip to content

Instantly share code, notes, and snippets.

View JuryA's full-sized avatar

Jiří Altman JuryA

View GitHub Profile
#!/bin/bash
echo "Hello world!"
@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:
@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 / 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_"
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 / 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",
@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 / bootstrap.ps1
Last active February 13, 2019 11:12
Bootstrap script
#As described here: http://boxstarter.org/Learn/WebLauncher
#The command to run, built from the raw link of this gist
#START http://boxstarter.org/package/nr/url?https://gist.github.com/JuryA/1db33ab88f7028c2defecdaaba94ac6a/raw
# Boxstarter options
$Boxstarter.RebootOk=$false # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
@JuryA
JuryA / Cisco_Anyconnect.ps1
Created December 4, 2018 20:50 — forked from jhorsman/Cisco_Anyconnect.ps1
PowerShell to automate VPN connection with Cisco AnyConnect Secure Mobility Client
#Source www.cze.cz
#This script is tested with "Cisco AnyConnect Secure Mobility Client version 3.1.00495"
# Usage: & '.\Cisco_Anyconnect.ps1' [-Server <server name or ip>] [-Group <group>] [-User <user>] [-Password <password>]
#Please change following variables
#IP address or host name of cisco vpn, Username, Group and Password as parameters
param (
[string]$Server = $( Read-Host "Input server, please" ),
@JuryA
JuryA / autoWSL.box
Last active October 19, 2018 09:42
How-to install WSL on Win 10 (without Windows Store)
cinst Microsoft-Windows-Subsystem-Linux -source windowsFeatures
cinst wsl-ubuntu-1804