Skip to content

Instantly share code, notes, and snippets.

View icarrr's full-sized avatar
🚴
Cycling anywhere and Work from everywhere

Faizar Septiawan icarrr

🚴
Cycling anywhere and Work from everywhere
View GitHub Profile
#!/bin/bash
# Note, we are using "echo 3", but it is not recommended in production instead use "echo 1"
echo "sudo echo 1 > /proc/sys/vm/drop_caches"
@icarrr
icarrr / README.md
Created September 20, 2022 22:40
Cloudflared - argo tunnel

Login to cloudflare

.\cloudflared tunnel login

Create tunnel

.\cloudflared tunnel create tunnel_name

Argo tunnel config

@icarrr
icarrr / edx_microsite.conf
Created July 24, 2022 13:32
# NginX conf for micorsite Open edX
server {
access_log /edx/var/log/nginx/your-domain.access.log p_combined;
error_log /edx/var/log/nginx/your-domain.error.log error;
server_name your-domain;
location @proxy_to_lms_app {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;

Install Docker Engine and Compose

say:
echo 'Hello DevX!'
editable:
sudo chown `whoami` -R `pwd`
reset:
sudo chown edxapp -R `pwd`
reset.cache:

Install MinIO

Open edX compile new theme or re-build assets with default theme

@icarrr
icarrr / s3.md
Created October 19, 2021 08:52
S3 Bucket Policy & Cors for Public Access

Policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
 "Principal": {

Backup and Restore DB Open edX

@icarrr
icarrr / readme.md
Created June 4, 2021 02:41
#Python Encode & Decode URL

Python

Encode & Decode URL

Python2

$ alias urldecode='python -c "import sys, urllib as ul; \
    print ul.unquote_plus(sys.argv[1])"'