Skip to content

Instantly share code, notes, and snippets.

View anak10thn's full-sized avatar
🌴
Maaf gak di rumah

Ibnu Yahya (Eka) anak10thn

🌴
Maaf gak di rumah
View GitHub Profile
@anak10thn
anak10thn / create_docker_compose_basic_auth_string_for_traefik.sh
Created November 30, 2019 02:25 — forked from TechupBusiness/create_docker_compose_basic_auth_string_for_traefik.sh
Generator to create basic authentication string for traefik (docker-compose.yml and .env)
#!/bin/bash
SUDO=''
if (( $EUID != 0 )); then SUDO='sudo'; fi
echo "Basic auth for traefik >= v1.7"
read -p "User: " USER
read -p "Password: " PW
# Checks if htpasswd is available or install it otherwise

KNOT AGENT JSON PARAMETER DOCS AGENT MENGGUNAKAN LIBKNOT

Semua parameter agent json sama dengan parameter LIBKNOT

PENJELASAN

perhatikan json berikut ini :

{
 "command-set": {
//http://openaudio.blogspot.com/2016/10/teensy-audio-over-usb.html
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputUSB usb1; //xy=70,155
AudioFilterBiquad biquad1; //xy=198,227
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Memory-aware LRU Cache function decorator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A modification of the builtin ``functools.lru_cache`` decorator that takes an
additional keyword argument, ``use_memory_up_to``. The cache is considered full
if there are fewer than ``use_memory_up_to`` bytes of memory available.
- declaration
- ident: "tes"
- assign: "="
- boolean > boolean_true: "benar"
- function
- ident: "test"
- function_clause
- function_args
- defarg > ident: "a"
- defarg > ident: "b"
@anak10thn
anak10thn / iterm2-solarized.md
Created November 24, 2018 16:09 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@anak10thn
anak10thn / LICENSE.md
Created October 24, 2018 16:40 — forked from joshbode/LICENSE.md
YAML Loader with include constructor (Python 3)

MIT License

Copyright (c) 2018 Josh Bode

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@anak10thn
anak10thn / index.html
Created October 8, 2018 08:22
Instagram Stories prototype
<div class="stories-wrapper">
<div class="warning-message">This demo looks best at widths below 1000px. Try 400px.</div>
<div class="success-message">👍</div>
<section class="stories">
</section>
</div>
<div class="feed">
<div class="feed__cover"></div>
<div class="header"></div>
@anak10thn
anak10thn / cpp_utf8_utf16.cpp
Created September 11, 2018 10:18 — forked from gchudnov/cpp_utf8_utf16.cpp
C++ string conversion UTF8 <-> UTF16
#include <string>
#include <locale>
#include <codecvt>
//UTF-8 to UTF-16
std::string source;
//...
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> convert;
std::u16string dest = convert.from_bytes(source);
@anak10thn
anak10thn / Dockerfile
Created August 24, 2018 14:24 — forked from orenitamar/Dockerfile
Installing numpy, scipy, pandas and matplotlib in Alpine (Docker)
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib
# in an Alpine based Docker image.
FROM alpine:3.4
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install numpy scipy pandas matplotlib