Skip to content

Instantly share code, notes, and snippets.

@varun-seth
varun-seth / poetry_to_pyproject.py
Created April 10, 2023 13:21
Derive Poetry Lock from
import tomlkit
LOCK_FILE_PATH = "poetry.lock"
PYPROJECT_PATH = "pyproject.toml"
def main():
try:
with open(LOCK_FILE_PATH, "r") as lock_file:
lock_content = lock_file.read()
@romainnorberg
romainnorberg / pre-request-script
Last active September 4, 2019 04:32
Work with OVH-Api using Postman Pre-request scripts (Blog post: https://blog.romainnorberg.be/post/work-with-ovh-api-using-postman)
pm.sendRequest({
url: "https://api.ovh.com/1.0/auth/time",
method: "GET",
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: {}
},
function (err, res) {
@motleytech
motleytech / casper.md
Created June 21, 2016 01:00
Deal with casper

Unofficial Guide to JAMF Casper

This page documents the external/internal behavior of Casper.

Files

Casper installed itself into the following directories:

  • /Library/Application Support/JAMF
    • ManagementFrameworkScripts - a set of scripts that runs on certain events
      • StartupScript.sh - Activated when jamf is started
      • loginhook.sh - Activated when user login
  • logouthook.sh - Activated when user logout