Skip to content

Instantly share code, notes, and snippets.

View withgod's full-sized avatar
💭
I may be slow to respond.

takumi withgod

💭
I may be slow to respond.
View GitHub Profile
@withgod
withgod / log-php74-2.log
Last active November 8, 2020 09:03
mysqlnd persistent connection problem
[ec2-user@test test]$ git diff
diff --git a/mysql3.php b/mysql3.php
index a4f6a8a..0e277f0 100644
--- a/mysql3.php
+++ b/mysql3.php
@@ -11,8 +11,8 @@ define('MY_TBL', 'sample');
function _check() {
$link = mysqli_init();
- $ret1 = mysqli_options($link, MYSQLI_OPT_INT_AND_FLOAT_NATIVE, TRUE);
@withgod
withgod / control
Created December 19, 2019 10:31
erlang-solutions_2.0_all.deb
Package: erlang-solutions
Version: 2.0
Architecture: all
Maintainer: Erlang Solutions <packages@erlang-solutions.com>
Pre-Depends: dpkg (>= 1.14.0), gnupg | gnupg1 | gnupg2
Installed-Size: 2
Section: web
Priority: optional
Description: A package to add repository.
noname@jugg:~$ curl -v https://store.steampowered.com/
* Trying 23.10.0.203...
* Connected to store.steampowered.com (23.10.0.203) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 692 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: store.steampowered.com (matched)

https://www.youtube.com/watch?v=mBakPg6x63Q&feature=youtu.be

  • G2A では誰でも鍵を売買できる
  • 格安のゲームバンドルを買い、それを通常のゲームの定価以下でばら売りする業者がいる
  • 盗難されたクレジットカードで大量に tinybuild http://tinybuild.com/ でゲームを買い、シリアルをすべて格安で G2A で転売する詐欺が横行している
  • G2A はこの問題に対応しようと全くしていなくて、手数料で儲けている
  • さらに G2A で盗難シリアルを買って、それが deactivate された場合、もし追加で保険料を払っていなかった場合はそのまま泣き寝入りする羽目になる。
  • Ubisoft は Farcry 4 でこのような被害にあったときは。盗難されたキーをすべて無効かしたが、ユーザーからの反発が強かったのですべて再有効化した。
  • あるゲーム販売業者では 1/3 の売り上げは盗難されたクレジットカードで買われている。おそらく G2A という簡単にキーを売れるシステムがあるのが原因である。
[vagrant@localhost ~]$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
INPUT_direct all -- anywhere anywhere
INPUT_ZONES_SOURCE all -- anywhere anywhere
INPUT_ZONES all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
@withgod
withgod / gist:85e77bf2b42a688eda1d
Created February 6, 2015 04:46
マリリン・マンソン.txt
Yahoo!ニュース 音楽「マリリン・マンソンからマリリン・マンソンが脱退表明」
12月25日、アメリカの有名ロックバンド、マリリン・マンソン
からボーカルのマリリン・マンソンが脱退するという意向を表明した。
マリリン・マンソンは89年にマリリン・マンソンとしてデビューし、
「メカニカル・アニマルズ」などのヒット作を生んだロックシンガー。
またマリリン・マンソンはマリリン・マンソンの奇抜さと
挑発的なパフォーマンスでも有名なバンドで、
特にマリリン・マンソンの宗教批判は団体からの
数々のバッシングを受けるほどである。
[noname@sakura]sudo iptables -t nat -A PREROUTING -i eth0 -p udp --dport 65738 -j REDIRECT --to-port 64738 [/etc/ufw]
[noname@sakura] [/etc/ufw]
[noname@sakura]sudo iptables -t nat -A PREROUTING -i eth0 -p udp --dport 64748 -j REDIRECT --to-port 64738 [/etc/ufw]
[noname@sakura] [/etc/ufw]
[withgod@crowbar]ping www.google.com [~]
PING www.google.com (74.125.235.177): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
64 bytes from 74.125.235.177: icmp_seq=0 ttl=46 time=2538.270 ms
64 bytes from 74.125.235.177: icmp_seq=1 ttl=46 time=2651.660 ms
64 bytes from 74.125.235.177: icmp_seq=2 ttl=46 time=2583.869 ms
Request timeout for icmp_seq 5
64 bytes from 74.125.235.177: icmp_seq=3 ttl=46 time=3116.976 ms
Request timeout for icmp_seq 7
<?php
var_dump($_SERVER);
#環境によって微妙に違うから好きなの選ぶ為にvar_dump
#REQUEST_URI
#SCRIPT_NAME
#PHP_SELF
#SCRIPT_FILENAME
if (preg_match('/index.php/', $_SERVER['SCRIPT_NAME'])) {
include_once('/path/to/hoge.php');