Skip to content

Instantly share code, notes, and snippets.

@dl6nm
dl6nm / README-Template.md
Created November 1, 2018 21:56 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@dl6nm
dl6nm / README.md
Created November 7, 2018 20:46 — forked from rowanmanning/README.md
Writing a Friendly README. This a companion-gist to the post: http://rowanmanning.com/posts/writing-a-friendly-readme/
@dl6nm
dl6nm / gist:39c78d5835bd1a7fc8c0caabffd29e6d
Created January 13, 2019 09:26 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@dl6nm
dl6nm / install-cx_freeze-from-github
Last active February 20, 2019 14:55
Install cx_Freeze from github repository
# install cx_Freeze from github repository due to a bug with pip install (01/2019)
pip install --upgrade git+https://github.com/anthony-tuininga/cx_Freeze.git@master
@dl6nm
dl6nm / clone.js
Created May 8, 2019 16:29
Clone JavaScript object with JSON stringify and parse in the callas pdfToolbox
function clone(obj) {
/*
Use this function in a callas pdfToolbox process plan for cloning objects (e.g. app.doc)
to manipulate them after a check was executed.
*/
if (obj !== undefined) {
return JSON.parse(JSON.stringify(obj));
}
return obj;
}
@dl6nm
dl6nm / console.py
Created May 31, 2019 10:17
Open a console window with current working directory
"""Open a console window with current working directory"""
import os
import platform
if platform.system() == 'Windows':
os.system('powershell -Command "Start-Process cmd -Verb RunAs -ArgumentList "/k", "cd", "{}""'.format(os.getcwd()))
@dl6nm
dl6nm / add_to_clipboard.py
Created February 10, 2020 09:40
Add text from Python to the Windows clipboard
import os
def addToClipBoard(text):
command = 'echo ' + text.strip() + '| clip'
os.system(command)
#example
addToClipBoard('Hello')
@dl6nm
dl6nm / .gcloudignore
Last active May 14, 2020 13:05
Configuration templates for Google App Engine Python 3 standard environment with CI/CD .gitlab-ci.yml
# https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore
#
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
@dl6nm
dl6nm / grafana_telegram_bot.md
Created July 1, 2020 09:05 — forked from ilap/grafana_telegram_bot.md
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather
@dl6nm
dl6nm / config
Created July 23, 2020 06:51
Set user credentials in .git/config
# Add the following lines to your .git/config to set other credentials than the default ones used in [Fork Git Client](http://fork.dev/)
[credential "https://github.com/username/repository.git"]
helper = manager
username = username
useHttpPath = true