Skip to content

Instantly share code, notes, and snippets.

View solehudin5699's full-sized avatar
🎯
Focusing

Solehudin solehudin5699

🎯
Focusing
View GitHub Profile

How to get Telegram Bot Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFather
  2. Click Start
  3. Click Menu -> /newbot or type /newbot and hit Send
  4. Follow the instruction until we get message like so
    Done! Congratulations on your new bot. You will find it at t.me/new_bot.
    
@solehudin5699
solehudin5699 / docker-compose.jenkins-dind.yml
Created March 15, 2024 19:31 — forked from adelmofilho/docker-compose.jenkins-dind.yml
Docker-in-Docker approach to run Jenkins as a Docker container
# This docker-compose file intent to create a multi-container application
# that runs a Jenkins container connected via TLS to a Docker-in-Docker (dind) container as Docker daemon.
#
# Advice about this approach can be found at:
# http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
#
# As well discussion about another alternatives on this setup can be found at:
# https://forums.docker.com/t/using-docker-in-a-dockerized-jenkins-container/322/11
#
# Quick reference about Docker-in-Docker can be fount at:
@solehudin5699
solehudin5699 / temp_mail_server.md
Created December 29, 2023 07:40 — forked from gowtham1337/temp_mail_server.md
A quick guide for creating your own temporary mail server

##Overview You might have a need for a temporary mail service like mailinator.com on your own machine. This guide provides the minimum required steps to do that. The setup we will use is as follows

Procmail (Receive mail and forward to script)--->PHP Script(Parse Mail and put in Database)--->MySQL(Store the mails)--->JSON

Note: This is intended as a quick DIY for simple projects. Hence, we will not go into more details like spam detection and memory optimization.

##Instructions ####Setup Infrastructure

  1. Get a Top level domain name (Note: Getting this to work with a sub-domain will require more work and setup)
// 3.___
const convertToStar=(sentences="aa aa")=>{
const sentArr = sentences.split(' ');
let newSentences=[]
sentArr.forEach((word,idx)=>{
if(word.length>2){
let newWord='';
const lengthWord = word.length
word.split('').forEach((char,idx)=>{
if(idx>0&&idx<lengthWord-1){
@solehudin5699
solehudin5699 / meta-tags.md
Created March 4, 2022 03:53 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">