Skip to content

Instantly share code, notes, and snippets.

View benjipott's full-sized avatar
🏔️
Into The Wild

Benjamin Pott benjipott

🏔️
Into The Wild
  • Majelan, Afrostream, M6
  • Lyon, france
  • 16:57 (UTC -12:00)
  • X @benjipott
View GitHub Profile
@Erol444
Erol444 / demo_tools.py
Created August 8, 2024 15:31
NDVI Drone with SAM2 segmentation
import json
import colorsys
import cv2
import numpy as np
def sam_results(file):
with open(file, 'r') as file:
lines = file.readlines()
data = []
for line in lines:
@asfourco
asfourco / cdk.json
Created March 6, 2020 12:23
Building AWS CDK Lambda Layer - Python
{
"app": "python3 stack.py",
"out": "cdk.out"
}
# Purge the Heroku Build Cache using the terminal. This requires a new deployment FYI.
# Replace appname with name of application on Heroku.
heroku plugins:install heroku-repo
heroku repo:purge_cache -a appname
git commit --allow-empty -m "Purge cache"
git push heroku master
@magicspon
magicspon / server.js
Created November 7, 2018 09:48
using https with next
const https = require('https')
const { parse } = require('url')
const next = require('next')
const fs = require('fs')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()
const options = {
---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
- push_branch: "*"
workflow: tests
workflows:
_tests_setup:
steps:
- activate-ssh-key: {}
@erkattak
erkattak / AndroidManifest.xml
Created June 19, 2017 18:47
Android Application Setup for use with Charles Proxy
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
@nickkraakman
nickkraakman / ffmpeg-cheatsheet.md
Last active October 9, 2025 11:07
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
/* ----- GENERAL ARCHITECTURE--->
not valid
<-respond with error
|
|
|
|
+------------------------------------------------------------------------+
| FFMPEG | |
@OleksandrKucherenko
OleksandrKucherenko / version-up.sh
Last active August 20, 2025 07:25
Calculate Next Suitable Version Tag for Your Git based project
#!/usr/bin/env bash
# shellcheck disable=SC2155
## Copyright (C) 2017, Oleksandr Kucherenko
## Last revisit: 2023-09-30
## Version: 2.0.2
## License: MIT
## Fix: 2023-10-01, prefix for initial INIT_VERSION was not applied
## Fix: 2023-10-01, correct extraction of latest tag that match version pattern
## Added: 2023-09-30, @mrares prefix modification implemented
@vielhuber
vielhuber / script.sh
Last active August 19, 2025 11:26
PostgreSQL: Backup and restore export import pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux