Skip to content

Instantly share code, notes, and snippets.

View ajhalili2006's full-sized avatar
🏫
Currently in school + hauling over autistic burnout

Andrei Jiroh Halili ajhalili2006

🏫
Currently in school + hauling over autistic burnout
View GitHub Profile
@ajhalili2006
ajhalili2006 / package.json-samplers-1.base
Created September 1, 2019 09:24
Just some imports there again....
{
"name": "ghost-imports",
"version": "1.230.2",
"description": "Install a Ghost blog on Glitch without the pre-installation stress, pre-configured and pre-installed based on v2.30.2."
"scripts": {
"start": "bash init.sh && node node_modules/ghost/index"
},
"dependencies": {
"ghost": "^2.30.2",
"ghost-cli": "^1.10.0",

Deploy the source code is not harder as you think. In fact there are some ways to deploy it. Read on to learn more about how you deploy an app to make things working. In this tutorial, we use MadeByThePinsTeamHub/mwbot-official as am example during this tutorial.

What you need

  • Git CLI, Node.js and NPM (pre-installed, but you can update it)
  • A service to deploy code (e.g. Glitch)
@ajhalili2006
ajhalili2006 / keybase-old.md
Last active June 12, 2023 17:29
My Keybase identity proof before 2023-05-05, see https://gist.github.com/ajhalili2006/b24b1c2178a4855be25216e3443ef8ee for latest proof.

Keybase proof

I hereby claim:

  • I am ajhalili2006 on github.
  • I am ajhalilidev06 (https://keybase.io/ajhalilidev06) on keybase.
  • I have a public key ASBCy4KerdCaXCSFZpzJNB2i665yhaKyOelNx6nVqwXXego

To claim this, I am signing this object:

@ajhalili2006
ajhalili2006 / Getting Support.md
Last active July 6, 2020 10:36 — forked from reetp/Readme.md
An one-file documentation on getting Support.
cat << EOF |sudo tee -a /lib/systemd/system/rocketchat.service
[Unit]
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
[Service]
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
@ajhalili2006
ajhalili2006 / HerokuLogs-SlugSizeTooLarge-RocketChat.txt
Created July 8, 2020 08:25
If you had experienced this error, press F.
-----> Node.js app detected
-----> Listing HEROKU_ environment variables
HEROKU_APP_ID:
HEROKU_APP_NAME:
HEROKU_DYNO_ID:
HEROKU_RELEASE_VERSION:
HEROKU_SLUG_COMMIT:
HEROKU_SLUG_DESCRIPTION:
-----> Installing meteor
Downloading Meteor distribution
@ajhalili2006
ajhalili2006 / devfile.yaml
Last active July 10, 2020 09:05
An example devfile.yaml crafted for usage on the Pins team's OSS projects in JS on Eclipse Che.
# Define the API version we're using.
apiVersion: 1.0.0
# Do some meta stuff
metadata:
generateName: thepinsteam-jscodestuff-
# List down our OSS projects written in JS.
# In our case, we're using our fork of the Devs' the Guard as an example.
projects:
@ajhalili2006
ajhalili2006 / devfile.yaml
Created July 10, 2020 09:15
Template for the RCW TG Userbot repo on Eclipse Che
projects:
- name: RetardedCasesWatcher-TGuserbot
source:
type: git
location: 'https://gitlab.com/RetardedCasesOnTG/RetardedCasesWatcher-TGuserbot.git'
metadata:
generateName: thepinsteam-rcwuserbot-
components:
- type: chePlugin
id: ms-python/python/latest
{
"Nana-Userbot-Legenhand" : {
"Author" : "Legenhand",
"repo-link" : "https://github.com/legenhand/Nana-Bot",
"version" : {
"latest" : {
"is-beta" : false,
"dockerfile" : "https://raw.githubusercontent.com/legenhand/Nana-Bot/master/Dockerfile",
"description" : "Old repository of the Nana userbot."
},
@ajhalili2006
ajhalili2006 / get_actions_secrets.py
Last active September 27, 2021 05:53
Get an specific Actions secret and send it as an Telegram message from an bot.
# Step 1: Configure our argument parser.
import argparse
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description='Simple Python script to get your hidden CI tokens to an private Telegram chat.'
)
# Step 2: Add arguments needed
parser.add_argument("--bot-token", help="Telegram Bot API token, generated with BotFather.", required=True, default="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11")
parser.add_argument("--client-id", help="Telegram API client ID, generated from https://my.telegram.org/apps", type=int, required=True, default=87528)