Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name twitter/x spam blocking helper
// @version 1
// @grant none
// @include https://twitter.com/*
// @include https://x.com/*
// ==/UserScript==
//configuration
const EXCLUDE_PATH = [
@tac-yacht
tac-yacht / gen_dict_6x6_250.py
Last active November 14, 2021 04:15
Vieurekaサンプルアプリ「ARマーカー認識アプリ」のARタグ生成
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ref by https://qiita.com/suo-takefumi/items/30a225cef8ea42366f8e
# usage
# gen_dict_6x6_250.py
# result file -> ar_0.png
#
# gen_dict_6x6_250.py 1
# result file -> ar_1.png
@tac-yacht
tac-yacht / build.gradle
Last active September 21, 2021 22:56
codeartifact's credentials get from profile
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.amazonaws:aws-java-sdk-codeartifact:1.11.801'
}
}
import com.amazonaws.services.codeartifact.AWSCodeArtifactClient;
@tac-yacht
tac-yacht / lambda_function.py
Created June 19, 2019 12:32
IoT 1-Click to CodePipeline's Approval
import json
import boto3
import os
import logging
#https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/python-logging.html
logger = logging.getLogger()
logger.setLevel(logging.INFO)
client = boto3.client('codepipeline')
sudo apt-get remove python-pip python3-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo python3 get-pip.py
sudo pip3 install --upgrade google-api-python-client oauth2client
#!/bin/bash
# 無限ループ
while :
do
echo "おみくじ please wait"| show_txt -
num=$((RANDOM%100))
#echo "debug:"${num} | show_txt -
if [ ${num} -gt 50 ];then