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

KNOT AGENT JSON PARAMETER DOCS AGENT MENGGUNAKAN LIBKNOT

Semua parameter agent json sama dengan parameter LIBKNOT

PENJELASAN

perhatikan json berikut ini :

{
 "command-set": {
@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 / 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
@anak10thn
anak10thn / PLESK.md
Last active August 8, 2018 04:10 — forked from sofyan48/PLESK
{
	"networks": {
		"PLSK-network-default": {
			"parameters": {
				"cidr": "192.168.69.0/24",
				"gateway": "192.168.69.1"
			},
			"template": "private"
 }
@anak10thn
anak10thn / docker-on-vm.yml
Created July 24, 2018 07:54 — forked from dohuyhoang/docker-on-vm.yml
OpenStack Heat template for deploy docker on VM
heat_template_version: 2013-05-23
description: Single compute instance running cirros in a Docker container.
parameters:
private_net_id:
type: string
description: Neutron Network ID for the server
public_net_id:
type: string
@anak10thn
anak10thn / install_caffe.sh
Created April 15, 2018 10:45 — forked from doctorpangloss/install_caffe.sh
Installing Caffe on Mac 10.11.5 and later in the 10.11 series, and 10.12.1 and later in the 10.12 series
#!/bin/sh
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Apple hides old versions of stuff at https://developer.apple.com/download/more/
# Install the latest XCode (8.0).
# We used to install the XCode Command Line Tools 7.3 here, but that would just upset the most recent versions of brew.
# So we're going to install all our brew dependencies first, and then downgrade the tools. You can switch back after
# you have installed caffe.
# Install CUDA toolkit 8.0 release candidate
# Register and download from https://developer.nvidia.com/cuda-release-candidate-download
@anak10thn
anak10thn / useful_pandas_snippets.py
Created November 3, 2017 13:24 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
# List unique values in a DataFrame column
# h/t @makmanalp for the updated syntax!
df['Column Name'].unique()
# Convert Series datatype to numeric (will error if column has non-numeric values)
# h/t @makmanalp
pd.to_numeric(df['Column Name'])
# Convert Series datatype to numeric, changing non-numeric values to NaN
# h/t @makmanalp for the updated syntax!
@anak10thn
anak10thn / update-tags.md
Created June 27, 2017 18:55 — forked from alexrqs/update-tags.md
Update github tags with new commits
Create a branch with the tag
	git branch {tagname}-branch {tagname}
	git checkout {tagname}-branch
Include the fix manually if it's just a change ....
	git add .
	git ci -m "Fix included" # or cherry-pick the commit, whatever is easier
	git cherry-pick {num_commit}