Skip to content

Instantly share code, notes, and snippets.

View ilmsg's full-sized avatar
😍
love me love my bug

Eak Netpanya ilmsg

😍
love me love my bug
View GitHub Profile
@benoitpetit
benoitpetit / docker-compose.yml
Last active September 22, 2025 17:13
complete Gitlab installation and a runner with docker
version: '4.5'
services:
# GITLAB
gitlab-web:
image: 'gitlab/gitlab-ce:latest'
restart: always
container_name: gitlab-web
hostname: '192.168.0.14'
environment:
@voidnerd
voidnerd / Mail.js
Last active July 17, 2020 03:57
Email Templating Nodejs Helper
const nodemailer = require("nodemailer");
const path = require("path");
const hbs = require("nodemailer-express-handlebars");
const exphbs = require("express-handlebars");
const Handlebars = require("handlebars");
const {
allowInsecurePrototypeAccess,
} = require("@handlebars/allow-prototype-access");
/** Start Mail Helper */
@RafaRochaS91
RafaRochaS91 / Dockerfile
Created February 3, 2020 21:09
Dockerizing a NestJS + MongoDB service
FROM node:latest
# RafaRochaS91
RUN mkdir -p /usr/src/app
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# wildcard for both package.json and package-lock.json
COPY package*.json ./
@unkwn1code
unkwn1code / tweet-archive-converter.py
Last active March 16, 2025 22:02
Simple JSON to CSV Method for Twitter Archive Data
#!/usr/bin/env python3
'''
IMPORTANT: Please delete the following from the tweet.js file before using this:
---> window.YTD.tweet.part0 = <----
Whilst that remains you cant parse it easily with json.load
'''
import pandas as pd
import json
from pandas.io.json import json_normalize
@tvvignesh
tvvignesh / .gitlab-ci.yml
Created December 22, 2019 17:46
Example on running Skaffold with GITLAB CI for Kubernetes in GKE (Make sure you modify it appropriately and set GCP_SERVICE_KEY and GCP_PROD_SERVICE_KEY variable in Gitlab with the service account json value)
services:
- docker:dind
stages:
- development
- production
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ''
@adamu
adamu / line_bot_elixir_howto_en.md
Last active June 10, 2023 18:02
How to make a Line Chatbot with Elixir

This is my entry for the fukuoka.ex Elixir/Phoenix Advent Calendar 2019 day 13, and it's a guide for how to write a Line bot using Elixir. 🧪🤖🧪

日本語版はこちらです。

  1. First you need to create a Messaging API Channel on the Line Developers Console. You will also need to add your bot as a friend, and know the generated Channel ID and Channel Secret.

  2. Create a new Elixir app with a supervision tree:

    mix new advent --sup

  3. cd advent

  4. If you want to use git, now we can create a repository (optional):

Below is a simple exmple of how to use gitlab ci
you need to have two different runner: one windows with tag "windows" and one linux with tag "linux"
the pipeline basically try to do
-some go static check
-build go app on both window and linux parallel
-run int test
-deploy goapp to qa1 and qa2 parallel
-deploy to production
there is a lot room to improve this, say, qa1 could be a windows qa2 could be a linux, say, we do not really need runner but can use
@mbleigh
mbleigh / README.md
Last active June 25, 2025 18:44
Firebase Hosting Fetch All Files

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
@tanaikech
tanaikech / submit.md
Created July 23, 2019 06:31
Resumable Uploading Files to Google Drive using Golang

Resumable Uploading Files to Google Drive using Golang

This is a sample script for the resumable upload of Files to Google Drive using Golang. This script uses the library of google-api-go-client. About the installation of google-api-go-client, please check the Quickstart for golang at the official site.

Sample script:

package main

import (
@luandevpro
luandevpro / Post.js
Last active September 14, 2020 22:09
const mongoose = requier("mongoose")
const { ObjectId } = mongoose.Schema
const postSchema = new mongoose.Schema({
text: String,
image: String,
likes: [{type: ObjectId, ref: "user"}],
comments: [
{
text: String,