Skip to content

Instantly share code, notes, and snippets.

View adadesions's full-sized avatar
:octocat:
Applied Computer Scientist is the gem of the Earth.

Ada Kaminkure adadesions

:octocat:
Applied Computer Scientist is the gem of the Earth.
View GitHub Profile

Caution: Please Set up nginx on your server properly

Clone from your repository via git clone

git clone ...

Build Strapi

cd 
@adadesions
adadesions / CMD.sh
Created December 10, 2021 08:50
CI/CD GithubAction
// Build Container
docker build -t <container_name>:<version> .
// Run Image
docker run --rm <container_name>:<version>
// Build Container with Version
docker build -t <container_name>:<numeric version> . --build-arg VERSION=<numeric version>
// Add Tag to github, after push github action will deploy sourcecode to DockerHub
@adadesions
adadesions / Setup-Service-with-HTTPs.md
Last active January 27, 2022 07:32
Setup Service By Ada

Setup Domain name at DNS

Add A type and point to your IP Address


1. Install Nginx

sudo apt update
sudo apt install nginx
sudo service nginx status
@adadesions
adadesions / serve.go
Created September 22, 2021 08:59 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
@adadesions
adadesions / curl.md
Created September 9, 2021 09:52 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

#include <stdio.h>
#include <iostream>
using namespace std;
class Electronic {
public:
// Properties
string id;
string model;
// How to convert map[string]interface{} to Struct
// By AdaDeSions
package main
import (
"log"
"encoding/json"
)
// Setup
// Mac OS
brew install protobuf
// go modules
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
// Proc cmd
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative helloworld/helloworld.proto
// Commands
chromium-browser --start-fullscreen www.raspberrypi.org
chromium-browser --start-maximized www.raspberrypi.org
chromium-browser --kiosk www.raspberrypi.org
// Location to place commands
/etc/xdg/lxsession/LXDE-pi/autostart
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(CharacterController))]
[AddComponentMenu("Control Script/FPS Input")]
public class FPSInput : MonoBehaviour
{
public float speed = 6.0f;
public float gravity = -9.8f;