Skip to content

Instantly share code, notes, and snippets.

View urpylka's full-sized avatar

Artem Smirnov urpylka

View GitHub Profile
@tatesuke
tatesuke / GpsIdf.py
Created October 23, 2018 00:48
nmeaと突き合わせてjpg画像にexifタグを付加する
import piexif
import re
import datetime
class GpsIdf(object):
def __init__(self, gpsIdf):
self.gpsIdf = gpsIdf
@nunomcruz
nunomcruz / checkpoint.sh
Last active April 24, 2020 08:41 — forked from phoob/checkpoint.sh
The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just from time to time.
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
#
# Usage: ./checkpoint.sh
#
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up.
# Or, make an Automator action and paste the script. You will need sudo power.
@urpylka
urpylka / get-forks.py
Last active December 2, 2020 22:37
Script prepare bash-file for adding all forks
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:set ts=4 sw=4 et:
# Copyright 2019 Artem Smirnov
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@mrts
mrts / nexus-maven-repo-delete-artifacts.py
Last active December 25, 2020 09:37
Nexus 3 Maven repo artifact deletion with Python
# See API docs at http://nexus-url/#admin/system/api
import requests
USERNAME = 'user'
PASSWORD = 'password'
NEXUS_BASE_URL = 'http://nexus-url/service/rest/beta'
REPOSITORY = 'some-project-snapshots'
GROUP_FILTER = 'com.some.group'
@giripriyadarshan
giripriyadarshan / Debounce.ino
Created February 8, 2021 18:44
Arduino_Button_Debounce_for_interrupts
const byte led_pin = LED_BUILTIN;
const byte interrupt_pin = 2;
volatile byte state = LOW;
unsigned long interrupt_time = millis();
const unsigned long delay_time = 50; // Delay for every push button may vary
void setup() {
pinMode(led_pin, OUTPUT);
pinMode(interrupt_pin, INPUT_PULLUP);