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/bash | |
| # az-spn | |
| tenant='tenant id' # in my use case I have a single tenant | |
| declare -A dic | |
| dic['joes dev sub']='subscription name or id' | |
| dic['joes dev id']='SPN ID' | |
| dic['joes dev pass']='SPN password' |
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
| This is a useful list of programs to use on corporate laptops running windows. They shoul make the experience a bit more bearable. | |
| Process Explorer: have a better understanding on what the hell is running on your machine | |
| https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer | |
| Autoruns: when you have to disable stuff from the system startup | |
| https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns | |
| Chocolatey: better way to install software | |
| https://chocolatey.org |
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/bash | |
| # | |
| # Author: Ariel Kanterewicz <ariel@aknt.com.ar> | |
| # | |
| # Why this exists: | |
| # Because I had an archive of RAW files of old pictures (all of them CR2 files), | |
| # and the host was complaining (rightly so) that it was just a bunch of files | |
| # dumped there instead of a proper web page. | |
| # | |
| # What this does: |
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
| Year | Make | Model | Description | Price | |
|---|---|---|---|---|---|
| 1997 | Ford | E350 | ac, abs, moon | 3000.00 | |
| 1999 | Chevy | Venture "Extended Edition" | 4900.00 | ||
| 1999 | Chevy | Venture "Extended Edition, Very Large" | 5000.00 | ||
| 1996 | Jeep | Grand Cherokee | MUST SELL! \n air, moon roof, loaded | 4799.00 |
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
| # password protection doesn't seem to work, I'll figure it out eventually | |
| resgrp='some_resource_group' | |
| location='´some_region' | |
| name='some_name' | |
| dnsname='some_dns_prefix' | |
| password='some_password' | |
| az container create \ | |
| --resource-group $resgrp \ |
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
| import sys, re | |
| # first argument: the words file | |
| # second argument: the banned characters | |
| wordsfile = sys.argv[1] | |
| banned = sys.argv[2] | |
| # print("words file: " + wordsfile) | |
| # print("banned: " + banned) | |
| # print("") |
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/python | |
| import sys | |
| import pyexiv2 | |
| import os | |
| # print(sys.argv) | |
| if sys.argv[1] == "-d": | |
| files = sys.argv[2:] | |
| realrun = False |
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
| play_types = {1:"Piedra",2:"Papel",3:"Tijera"} | |
| def get_play(playernum): | |
| play = int(input(f"""Juigada jugador {playernum}: | |
| 1) {play_types[1]} | |
| 2) {play_types[2]} | |
| 3) {play_types[3]} | |
| : """)) | |
| print(f"Jugada: {play_types[play]}") | |
| return play |
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
| Performing C++ SOURCE FILE Test CXX_COMPILER_UNDERSTANDS_-Wold-style-declaration failed with the following output: | |
| Change Dir: /home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp | |
| Run Build Command:"/usr/bin/make" "cmTC_85d94/fast" | |
| /usr/bin/make -f CMakeFiles/cmTC_85d94.dir/build.make CMakeFiles/cmTC_85d94.dir/build | |
| make[1]: Entering directory '/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp' | |
| Building CXX object CMakeFiles/cmTC_85d94.dir/src.cxx.o | |
| /usr/bin/c++ -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -DCXX_COMPILER_UNDERSTANDS_-Wold-style-declaration -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wold-style-declaration -o CMakeFiles/cmTC_85d94.dir/src.cxx.o -c "/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp/src.cxx" | |
| cc1plus: warning: command line option '-Wold-style-declaration' is valid for C/ObjC but not for C++ | |
| <command-line>:0:26: warning: ISO C++11 require |
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
| Performing C++ SOURCE FILE Test CXX_COMPILER_UNDERSTANDS_-Wold-style-declaration failed with the following output: | |
| Change Dir: /home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp | |
| Run Build Command:"/usr/bin/make" "cmTC_24824/fast" | |
| /usr/bin/make -f CMakeFiles/cmTC_24824.dir/build.make CMakeFiles/cmTC_24824.dir/build | |
| make[1]: Entering directory '/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp' | |
| Building CXX object CMakeFiles/cmTC_24824.dir/src.cxx.o | |
| /usr/bin/c++ -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -DCXX_COMPILER_UNDERSTANDS_-Wold-style-declaration -Wall -fno-strict-aliasing -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wold-style-declaration -o CMakeFiles/cmTC_24824.dir/src.cxx.o -c "/home/kant/src/darktable/darktable-2.4.0~rc2/build/CMakeFiles/CMakeTmp/src.cxx" | |
| cc1plus: warning: command line option '-Wold-style-declaration' is valid for C/ObjC but not for C++ | |
| <command-line>:0:26: warning: ISO C++11 require |