Skip to content

Instantly share code, notes, and snippets.

View rizky's full-sized avatar
🌪️
Swirling

Rizky Ario rizky

🌪️
Swirling
View GitHub Profile
@rizky
rizky / ZendeskChat.js
Created November 26, 2022 09:12 — forked from hetmann/ZendeskChat.js
React Native implementation for Zendesk Chat using WebView & Modal components
import React, { Component } from "react";
import { WebView } from "react-native-webview";
import { Button, Modal, View } from "react-native";
// Author: Hetmann Wilhelm Iohan
// Email: contact@react-ui-kit.com
// Web: https://react-ui-kit.com
// YouTube: https://www.youtube.com/react-ui-kit
// This is a basic example showing how to use Zendesk Chat Widget using a webview inside a modal and a html code
@rizky
rizky / gist:73125c47236067d5e48e44af2174028b
Created June 15, 2022 08:08 — forked from sebsto/gist:6af5bf3acaf25c00dd938c3bbe722cc1
Start VNCServer on Mac1 EC2 Instance
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
#!/usr/bin/env python
import argparse
import socket
import ssl
import struct
import subprocess
import sys
try:
@rizky
rizky / python-es6-comparison.md
Created November 25, 2018 10:32 — forked from revolunet/python-es6-comparison.md
# Python VS ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math
#include <stdio.h>
void
swap (int *a, int *b)
{
int temp;
temp = *a;
*a = *b;
*b = temp;
@rizky
rizky / docker-gui.sh
Last active May 30, 2021 22:43
Run GUI app from docker
#Install XQuartz and Docker
brew cask install xquartz
brew cask install docker
# Open XQuartz
# In the XQuartz preferences, go to the “Security” tab
# Make sure you’ve got “Allow connections from network clients” ticked
open -a XQuartz
# Setup ENV
@rizky
rizky / .zshrc
Last active July 15, 2018 07:11
Z-shell resource
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="$HOME/.fastlane/bin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH=/Users/rizkyario/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.

Build tensorflow on OSX with NVIDIA CUDA support (GPU acceleration)

These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.

Requirements

OS X 10.10 (Yosemite) or newer

@rizky
rizky / pamp-index.php
Created February 22, 2018 13:03
index file for PAMP
<?php phpinfo(); ?>
@rizky
rizky / gitlab-entrypoint.sh
Created February 20, 2018 16:27
Entrypoint for gitlab
/opt/gitlab/embedded/bin/runsvdir-start&
EXTERNAL_URL="localhost" && gitlab-ctl reconfigure
tail -f /dev/null