Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
srz-zumix / .gitconfig
Last active September 9, 2022 03:04
disable fsmonitor for Homebrew
[includeIf "gitdir:/usr/local/Homebrew/**"]
path = ~/.gitconfig_for_homebrew
{
"name": "Slack Free looper",
"flow": [
{
"id": 12,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
Integromat BASIC Make Core (Annual)
Operations 10,000 10,000
Data transfer 1 GB 5 GB
Minimum interval 5 minutes 1 minutes
Max size of a single file 50 MB 100 MB
Internal data storage 10 MB 10 MB
@srz-zumix
srz-zumix / docker-cp-repo.sh
Created May 19, 2022 12:17
docker tags copy
#!/bin/bash
# usage: docker-cp-repo.sh src_repo dst_repo
set -euo pipefail
SRC_REPO=$1
DST_REPO=$2
SRC_TAGS=$(curl -s https://registry.hub.docker.com/v1/repositories/${SRC_REPO}/tags | jq -r '.[].name')
DST_TAGS=$(curl -s https://registry.hub.docker.com/v1/repositories/${DST_REPO}/tags | jq -r '.[].name')
// ConsoleApplication3.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <iostream>
//#include "test.h"
#include <test.h>
int main()
{
std::cout << "Hello World!\n";
@srz-zumix
srz-zumix / ConsoleApplication3.cpp
Last active December 15, 2021 13:22
MSVC-external-anglebracket
// ConsoleApplication3.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <iostream>
#include "test.h"
//#include <test.h>
int main()
{
std::cout << "Hello World!\n";
@srz-zumix
srz-zumix / main.cpp
Created December 14, 2021 01:36
system header warning
// not system include
// gcc: https://wandbox.org/permlink/MLrLASaM5o5A3UWm
// clang: https://wandbox.org/permlink/x6TT2NFROSmyLhV4
// system include
// gcc: https://wandbox.org/permlink/XVHXnWIMyOfDMjl3
// clang: https://wandbox.org/permlink/strTYwduT4ZLH5NK
// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>
name: Docker Build
on:
schedule:
- cron: "0 0 * * 1"
jobs:
push_to_registries:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
@srz-zumix
srz-zumix / jfrog-pipelines.yml
Created August 3, 2021 00:42
jfrog-pipelines cron trigger
resources:
- name: ci_skip_cron_trigger
type: CronTrigger
configuration:
interval: '0 0 * * 2'
pipelines:
- name: ci_skip_noop
steps:
- name: noop
resources:
- name: iutest_gitRepo
type: GitRepo
configuration:
gitProvider: GitHub
path: srz-zumix/iutest
branches:
include: master|^jfrog/.*
# https://www.jfrog.com/confluence/display/JFROG/Triggering+Pipelines+and+Steps#TriggeringPipelinesandSteps-CancellingPreviousRunsOnaGitRepositoryChange
cancelPendingRunsOn: