Skip to content

Instantly share code, notes, and snippets.

View printminion's full-sized avatar
💭
Time flies like an arrow; fruit flies like a 🍌

@printminion printminion

💭
Time flies like an arrow; fruit flies like a 🍌
View GitHub Profile
@itmaybeokay
itmaybeokay / panel.yaml
Last active May 3, 2026 22:42
Waveshare ESP32-S3 4.3inch Touch LCD Development Board Type B, 800×480 - ESPhome YAML example
esphome:
name: panel
friendly_name: panel
platformio_options:
build_flags: "-DBOARD_HAS_PSRAM"
board_build.arduino.memory_type: qio_opi
board_build.flash_mode: dio
board_upload.maximum_ram_size: 524288
@sunny
sunny / Add a discount.graphql
Last active May 27, 2026 15:58
Cults query examples
mutation {
createDiscount(
creationId: "Q3JlYXRpb24vMjIwMjQzMA"
discountPercentage: 50
discountEndAt: "2024-09-01T16:59:12+02:00"
) {
discount {
creation {
name
price {
@kosamari
kosamari / how_i_got_into_google.md
Last active September 26, 2026 09:26
Google に入るまでの話

Googleに入るまでの話 (Developer Relations)

コンテキスト: https://togetter.com/li/1331865

前提条件

部署

グーグルジャパンではなくてUSの本社での採用の話。私が受けたのはSoftware EngineerではなくてDeveloper Advocate。Engineering組織の下についているのでコーディング面接有り。ただし評価項目がSWEとは異なる。

英語

@kordless
kordless / start-vpn.sh
Last active August 28, 2022 02:25
VPN Server for Google Cloud
#!/bin/bash
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1)
SERVER_NAME=vpn-$NEW_UUID
gcloud compute instances create $SERVER_NAME \
--machine-type "n1-standard-1" \
--image-family ubuntu-1604-lts \
--image-project "ubuntu-os-cloud" \
--boot-disk-size "20" \
--boot-disk-type "pd-ssd" \
--boot-disk-device-name "$NEW_UUID" \
@foklepoint
foklepoint / .gitlab-ci.yml
Created July 8, 2017 20:25
Build and Push images to GCP Container Registry with Gitlab CI
image: docker:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
DOCKER_DRIVER: overlay
GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID
IMAGE_NAME: image_id
services:
@oshliaer
oshliaer / .googleappsscripteditorstyler.en.md
Last active November 29, 2024 09:38
Google Apps Script Editor Styler
@ziadoz
ziadoz / install.sh
Last active October 30, 2026 14:01
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@jlaustill
jlaustill / MagentoAuthStep3.js
Created October 20, 2016 14:30
The 3rd and final step in getting a permanent token from Magento REST API 1.x
var request = require('request');
var consumerKey = "57d84828608840c7dbaa637f2f66ee13",
consumerSecret = "82fbea317ff08682cdd73d9eb242f0c7",
token= "ce50bf275b8face27b9f6c43c91f9058",
token_secret="13a59b2e7547b239d116b62b35142528",
verifier="399860495fab9eea64b69375fd5c5aca",
siteUrl = "http://dev.yoursite.com";
// step 3
@jlaustill
jlaustill / MagentoAuthStep1.js
Last active November 1, 2018 09:59
The first step in getting a token from Magento 1.x REST API
var request = require('request');
var consumerKey = '57d84828608840c7dbaa637f2f66ee13',
consumerSecret = "82fbea317ff08682cdd73d9eb242f0c7",
siteUrl = "http://dev.yoursite.com";
// step 1
var qs = require('querystring'),
oauth = {
callback : 'http://thisis.broken/callback/',
@mpneuried
mpneuried / Makefile
Last active February 4, 2026 19:41
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)