Skip to content

Instantly share code, notes, and snippets.

View ariestiyansyah's full-sized avatar
🥬
Planting...

Rizky ariestiyansyah

🥬
Planting...
  • Blockchain
View GitHub Profile
@ariestiyansyah
ariestiyansyah / gist:8312f77325cc1b057e63
Last active August 29, 2015 14:16
PPh 21 AngularJS
<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
@ariestiyansyah
ariestiyansyah / LMS Nginx Configuration Open Edx
Last active November 7, 2019 06:53
LMS Nginx Configuration Open Edx
# LMS configuration file for nginx, templated by ansible
upstream lms-backend {
server 127.0.0.1:8000 fail_timeout=0;
}
server {
listen 80;
return 301 https://$host$request_uri;
}
@ariestiyansyah
ariestiyansyah / CMS Nginx Configuration Open Edx
Created August 9, 2015 08:30
CMS Nginx Configuration Open Edx
upstream cms-backend {
server 127.0.0.1:8010 fail_timeout=0;
}
server {
# CMS configuration file for nginx, templated by ansible
# Proxy to a remote maintanence page
# error pages
@ariestiyansyah
ariestiyansyah / Navigation IndonesiaX
Created August 10, 2015 09:17
html code for navigation
## mako
<%namespace name='static' file='static_content.html'/>
<%namespace file='main.html' import="login_query, stanford_theme_enabled"/>
<%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from microsite_configuration import microsite
from microsite_configuration.templatetags.microsite import platform_name
from ccx.overrides import get_current_ccx
# LMS configuration file for nginx, templated by ansible
upstream lms-backend {
server 127.0.0.1:8000 fail_timeout=0;
}
server {
listen 80;
return 301 https://$host$request_uri;
}
upstream cms-backend {
server 127.0.0.1:8010 fail_timeout=0;
}
server {
# CMS configuration file for nginx, templated by ansible
# Proxy to a remote maintanence page
# error pages
@ariestiyansyah
ariestiyansyah / bkt.py
Created August 12, 2015 23:06
Manage S3
#!/usr/bin/env python
"""
Usage: bkt <command> [options]
bkt handles file uploads to S3.
Commands:
ls List all buckets or all files in a bucket
get Download a file from a bucket
mk Create a new bucket
/*
Localizable.strings
edXVideoLocker
Created by Nirbhay Agarwal on 07/07/14.
Copyright (c) 2014 edX. All rights reserved.
*/
// Please keep in alphabetical order
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">edX</string>
<!-- Common values -->
<!-- Button to visit course group on facebook -->
<string name="course_details_fb_group">Official course Facebook group</string>
<!-- Button to view handouts for course -->
<string name="view_handouts">View course handouts</string>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Closed caption button label -->
<string name="lbl_cc">CC</string>
<!-- Divider between current time and total time. For example "2:33/5:10" -->
<string name="lbl_slash">/</string>
<!-- Name of mode when user has no internet connection causing some features to be unavailable -->
<string name="lbl_offline_mode">Offline Mode</string>
<!-- Label describing the meaning of offline mode -->
<string name="lbl_offline_mode_desc">In offline mode, you can only view videos that are saved on your device.</string>