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
@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 ./
@unkwn1-repo
unkwn1-repo / 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 April 10, 2025 19:30
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,
@etexier
etexier / java-stream-readme.md
Last active March 19, 2025 18:03
Cheat sheet on Java streams

Java Streams

Overview

As part of Java 8 new features, lambda expressions are now supported (Project Lambda). See this very easy-to-read article from Brian Goetz State of the Lambda but more importantly focusing more on streams: State of the Lambda: Libraries Edition

Quick ways to create a stream

// From parameters
@bradtraversy
bradtraversy / docker_wordpress.md
Last active April 17, 2025 05:13
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes