Skip to content

Instantly share code, notes, and snippets.

View sandikodev's full-sized avatar
🚄
on the way

Sandiko sandikodev

🚄
on the way
View GitHub Profile
@sandikodev
sandikodev / simplified-super-grid.css
Created November 5, 2020 21:22 — forked from fzn0x/simplified-super-grid.css
Simplified version of super-grid.css
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.container {
width: 100%;
padding: 0 15px;
margin: 0 auto;
"======[ r e a d m e f i r s t ]======
"check my keymap with :smap|xmap|nmap|amap|vmap / <C-w>/
"
"mode-prefix(1) = ctrl+w ==> [command]
"mode-prefix(2) = leader ==> [command]
"mode-leader = \
"mode-emmet = ctrl+a ==> [command]
"https://raw.githubusercontent.com/mattn/emmet-vim/master/TUTORIAL
"list of avaliable cmd ==> :command! [cmd_parent]
"
"======[ r e a d m e f i r s t ]======
"check my keymap with :smap|xmap|nmap|amap|vmap / <C-w>/
"
"mode-prefix(1) = ctrl+w ==> [command]
"mode-prefix(2) = leader ==> [command]
"mode-leader = \
"mode-emmet = ctrl+a ==> [command]
"https://raw.githubusercontent.com/mattn/emmet-vim/master/TUTORIAL
"list of avaliable cmd ==> :command! [cmd_parent]
"
@sandikodev
sandikodev / secure-mailserver-postfix-dovecot-letsencrypt-debian-jessie.md
Created December 23, 2020 21:32 — forked from jkullick/secure-mailserver-postfix-dovecot-letsencrypt-debian-jessie.md
Secure Mailserver with Postfix, Dovecot and Let's Encrypt on Debian Jessie

Prerequirements

Config Options

export FQDN="mail.example.org"
export DOMAIN="example.org"
export MAILBOX="user"
export DEBIAN_FRONTEND="noninteractive"
export A_RECORD=$(curl -sSL https://icanhazip.com)
@sandikodev
sandikodev / gt-report
Created January 22, 2021 16:54
report sementara dash gayatri
1. $DOMAIN/gayatri/maps
- geo tag maps memuat foto dan diskripsi(nama) akun terkait
- menu search query by:
-name
-nik
-
2. image laporan belum dapat termuat
$DOMAIN/gayatri/society-report/proccess
$DOMAIN/gayatri/society-report/in
@sandikodev
sandikodev / hik cheatsheet
Last active November 4, 2022 05:10
cheatsheet
https://www.hikvision.com/content/dam/hikvision/en/support/download/how-to/ipc/How%20to%20Get%20IPC%20MJPEG%20Stream%20via%20HTTP%20Commands.pdf
https://www.hikvision.com/ueditor/net/upload/2017-05-26/df89f1cb-b905-4182-bdb0-661de58584c1.pdf
http://mega-avr.net/file/programmy/IP-camera/HIKVISION/2.SDK/ISAPI/HIKVISION%20ISAPI_2.0-RaCM%20Service.pdf
http://86.49.187.98/Hikvision/Jak%20na%20to/Kamery_DVR_NVR/How%20to%20integrate%20with%20Hikvision%20LPR%20function%20via%20ISAPI.pdf
ftp://ftp.luis.ru/Raznoe/LTV_SDK/LTV_IP_S-Series_API/ISAPI_2.0-PTZ%20Service.pdf
https://11936797612864389938.googlegroups.com/attach/4fbec897364cf/HUNT%20RTSP%20and%20HTTP%20urls.pdf?part=0.1&view=1&vt=ANaJVrHQtZY6rc7ss5P8_hPsEVoagPjQD-5pcKxIXCHiEoNn_sOCsAnV9jRxTekz3i2T19u1bYlYbIRU9JzZJBs7y8vo855cip2x5rNoB0tq5jviERXBNUM
http://en0.ch/2020/08/add-temperature-to-hikvision-camera-overlay/
324284193-HIKCGI-Image-Display-Function.pdf
#include <Ethernet.h>
#include <SPI.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 0, 177 };
byte server[] = { 192,168, 0, 64}; // Google
String big_string="<?xml version='1.0' encoding='UTF-8'?>-<TextOverlay xmlns='http://www.hikvision.com/ver10/XMLSchema' version='1.0'><id>1</id><enabled>true</enabled><posX>0</posX><posY>96</posY><message>AAAAAA</message></TextOverlay>";
EthernetClient client;
void setup()

PlatformIO with Vim (neomake, clang, coc-vim, ale)

Requirements

PlatformIO

clangd

@sandikodev
sandikodev / ffmpeg4matelight.sh
Created February 9, 2021 01:17 — forked from MichaelKreil/ffmpeg4matelight.sh
using ffmpeg to stream videos, gifs, the webcam or the screen to matelight
# Stream a video
ffmpeg -re -i video.avi -vf "scale=40:ih*40/iw, crop=40:16" -f rawvideo -vcodec rawvideo -sws_flags bilinear -pix_fmt rgb24 - > /dev/udp/matelight.cbrp3.c-base.org/1337
# Loop a gif
ffmpeg -re -ignore_loop 0 -i image.gif -vf "scale=40:ih*40/iw, crop=40:16" -f rawvideo -vcodec rawvideo -sws_flags bilinear -pix_fmt rgb24 - > /dev/udp/matelight.cbrp3.c-base.org/1337
# Stream webcam
# Mac
ffmpeg -re -f avfoundation -r 30 -s 1280x720 -i "0" -vf "scale=40:ih*40/iw, crop=40:16, pp=autolevels:f, eq=1.5" -f rawvideo -vcodec rawvideo -sws_flags bilinear -pix_fmt rgb24 - > /dev/udp/matelight.cbrp3.c-base.org/1337