Skip to content

Instantly share code, notes, and snippets.

@knoajp
knoajp / proxy.pac
Last active December 25, 2022 05:26
function FindProxyForURL(url, host){
switch(true){
/*いまいましい音付き広告を拒否*/
case dnsDomainIs(host, '2mdn.net'):
case dnsDomainIs(host, 'cmertv.com'):
case dnsDomainIs(host, 'cxense.com'):
case dnsDomainIs(host, 'microad.jp'):
case dnsDomainIs(host, 'socdm.com'):
case dnsDomainIs(host, 'teads.tv'):
case dnsDomainIs(host, 'uliza.jp'):/*TVerのCMに使われるのでTVerを見るなら外す必要があるかも*/
@paoloantinori
paoloantinori / keycloak.sh
Created January 26, 2016 15:59
Keycloak Admin API Rest Example
#!/bin/bash
export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token')
curl -X GET 'http://localhost:8080/auth/admin/realms' \
@ktx2207
ktx2207 / Git_ファイルの履歴を完全に削除する.md
Last active February 17, 2024 05:32
Git ファイルの履歴を完全に削除する

Git ファイルの履歴を完全に削除する

秘密鍵など誤ってコミットしてしまった場合に履歴を完全に削除する手順
参考:6.4 Git のさまざまなツール - 歴史の書き換え

動作確認用にブランチを作成して試す

$ git checkout -b clean-key-file

動作確認用にブランチでgit filter-branchを実行