Skip to content

Instantly share code, notes, and snippets.

View smaknsk's full-sized avatar

Aleksandr Sobolevskii smaknsk

View GitHub Profile
@RangHo
RangHo / git-commit-template
Last active November 9, 2024 04:53
Commit message template that conforms to the Conventional Commits standard. (See also: https://github.com/RangHo/dotfiles/tree/main/git)
# <type>(<scope>)!: <description> (72 characters maximum)
# |<--- preferably using up to 50 characters --->|<------------------->|
# Optional <body>
# |<------------- try limiting to 72 characters per line ------------->|
# Optional <footer>
# ----- END COMMIT MESSAGE -----
#
@bettysteger
bettysteger / Editorjs.vue
Last active November 9, 2024 12:40
Vue 3 SFC for Editor.js using v-model with own custom vue component
<template>
<div class="editorjs" ref="htmlelement"></div>
</template>
<script setup>
import EditorJS from '@editorjs/editorjs';
import EmbedTool from '@editorjs/embed';
import ListTool from '@editorjs/list';
import ImageTool from '@editorjs/image';
import VideoTool from './editorjs/video.js';
import { onMounted, onUnmounted, ref, watch } from 'vue';

Install the editorjs package:

yarn add @editorjs/editorjs

or

npm i @editorjs/editorjs --save
@mamun67
mamun67 / kubeadm.md
Created May 9, 2019 10:14 — forked from jamesbuckett/kubeadm.md
kubeadm

Deploy a Kubernetes cluster and Microservices Application

image

What Problem are we solving

What is Kubernetes?

Agenda

  • Deploy a Kubernetes cluster on Digital Ocean using kubeadm
@dideler
dideler / bot.rb
Last active November 9, 2024 11:37
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@mowings
mowings / readme.md
Last active April 9, 2024 20:51
ffmpeg stream and save video from Dahua 4300s IP Camera

Use ffmpeg to stream video from a dahua 4300s to a file or files

You can use ffmpeg to directly pull frames off of a dahua 4300s at full resolution. May be a good alternative to pricey dvrs which likely cannot record at full resolution, may not work with the camera, or are prohibitevly expensive

Simple Stream to file

Simple stream to file. Full resolution

ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:[email protected]:554/live" \

-c copy -map 0 foo.mp4

@denji
denji / README.md
Last active August 26, 2024 23:22 — forked from istepanov/gist:3950977
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
@deckerego
deckerego / create_branches.sh
Created December 6, 2013 22:17
Mass-create branches in multiple Git repos and push them remote
#!/bin/sh
PROJECTS="Project_1 Project_2 Project_3"
BRANCH="$1"
if [[ -z "$BRANCH" ]]; then
echo "Usage $0 BRANCH_NAME"
exit -1
fi
@GUI
GUI / install_vagrant_sudoers.sh
Created June 3, 2012 19:13 — forked from beddari/install_vagrant_sudoers.sh
Allow Vagrant sudo-access without password for NFS-setup (for OS X)
#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports