Skip to content

Instantly share code, notes, and snippets.

View cirosantilli's full-sized avatar
🇹🇼
2018包子露宪,2015 710律师劫,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚

Ciro Santilli (三西猴) OurBigBook.com sponsor me: cirosantilli.com/sponsor, opinions my own 2020冠状病毒审查 ,2020郝海东 ,2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 709大抓捕,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱<script>alert(1)</script> cirosantilli

🇹🇼
2018包子露宪,2015 710律师劫,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚
  • 2020冠状病毒审查 ,2020郝海东 ,2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 709大抓捕,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱<script>alert(1)</script>
  • 2020冠状病毒审查 ,2020郝海东 ,2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 709大抓捕,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱<script>alert(1)</script>
  • X @cirosantilli
  • https://stackoverflow.com/users/895245
  • LinkedIn in/cirosantilli
  • YouTube @CiroSantilli
View GitHub Profile
#include <cassert>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <cxxabi.h> // __cxa_demangle
#include <elfutils/libdwfl.h> // Dwfl*
#include <execinfo.h> // backtrace
#include <unistd.h> // getpid
nthreads CpuThread CpuProcess IoThread IoProcess
1.000000e+00 3.144138e-01 3.251026e-01 1.001459e+00 1.003092e+00
2.000000e+00 6.895385e-01 3.517330e-01 1.001673e+00 1.006315e+00
3.000000e+00 1.031855e+00 3.544722e-01 1.001369e+00 1.006683e+00
4.000000e+00 1.421367e+00 3.659563e-01 1.001482e+00 1.004262e+00
5.000000e+00 1.758888e+00 5.339592e-01 1.001763e+00 1.009259e+00
6.000000e+00 2.055879e+00 5.403588e-01 1.001714e+00 1.008378e+00
7.000000e+00 2.421100e+00 6.488514e-01 1.002105e+00 1.008495e+00
8.000000e+00 2.919692e+00 6.753159e-01 1.001981e+00 1.012398e+00
9.000000e+00 3.445944e+00 8.028872e-01 1.002099e+00 1.012729e+00
@cirosantilli
cirosantilli / dead_horse.js
Created November 10, 2021 08:41 — forked from chenx6/dead_horse.js
Stackoverflow 的 Ciro Santilli 你🐴死了
// ==UserScript==
// @name Stackoverflow 的 Ciro Santilli 你🐴死了
// @namespace Violentmonkey Scripts
// @match https://stackoverflow.com/*
// @grant none
// @version 1.0
// @author -
// @description 2021/11/8 上午11:09:57
// ==/UserScript==

Information is power. But like all power, there are those who want to keep it for themselves. The world’s entire scientific and cultural heritage, published over centuries in books and journals, is increasingly being digitized and locked up by a handful of private corporations. Want to read the papers featuring the most famous results of the sciences? You’ll need to send enormous amounts to publishers like Reed Elsevier.

There are those struggling to change this. The Open Access Movement has fought valiantly to ensure that scientists do not sign their copyrights away but instead ensure their work is published on the Internet, under terms that allow anyone to access it. But even under the best scenarios, their work will only apply to things published in the future. Everything up until now will have been lost.

That is too high a price to pay. Forcing academics to pay money to read the work of their colleagues? Scanning entire libraries but only allowing the folks at Google to read them? Providing scientific a

@cirosantilli
cirosantilli / dmesg
Last active June 10, 2021 07:47
Ubuntu UI screen image freezes randomly during usage after fresh 21.04 install, suspecting Wayland or Nouveau
[ 0.000000] microcode: microcode updated early to revision 0xde, date = 2020-05-26
[ 0.000000] Linux version 5.11.0-18-generic (buildd@lgw01-amd64-049) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.36.1) #19-Ubuntu SMP Fri May 7 14:22:03 UTC 2021 (Ubuntu 5.11.0-18.19-generic 5.11.17)
[ 0.000000] Command line: BOOT_IMAGE=/BOOT/ubuntu_uvs1fq@/vmlinuz-5.11.0-18-generic root=ZFS=rpool/ROOT/ubuntu_uvs1fq ro
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
</head>
<body>
000(023Rb|001Rb)
001(017La|002Rb)
002(021La|003Rb)
003(021La|004La)
004(009Rb|005Lb)
005(004Ra|005La)
006(008La|007La)
007(009Rb|007La)
008(009Ra|008La)
009(010Ra|026Ra)
@cirosantilli
cirosantilli / README.md
Created April 7, 2021 11:42 — forked from twolfson/README.md
Truncating tables with Sequelize

In tests that use a database, it's necessary to clean out the tables before each run (we don't use after so we can debug a failed test's db).

Sometimes we forget the syntax though so here's what we do:

before(function truncateDatabase (done) {
  // http://docs.sequelizejs.com/en/v3/docs/raw-queries/
  // https://www.postgresql.org/docs/9.3/static/sql-truncate.html
  // DEV: PostgreSQL doesn't support truncating all tables via a `*`
 // DEV: Our query is vulnerable to SQL injection but we can't use bind and trust our table names more/less
@cirosantilli
cirosantilli / gfw_contributors.md
Created February 23, 2021 09:19 — forked from yefuchs/gfw_contributors.md
GFW Contributers

#The Great Firewall (GFW) Contributors List

注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量

###Binxing Fang (方滨兴)

中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing

@cirosantilli
cirosantilli / bitcoinInsertionTool.py
Created January 9, 2021 19:02
bitcoin insertion tool
#
# File insertion tool for Bitcoin
# Requires git://github.com/jgarzik/python-bitcoinrpc.git
#
# (c) 2013 Satoshi Nakamoto All Rights Reserved
#
# UNAUTHORIZED DUPLICATION AND/OR USAGE OF THIS PROGRAM IS PROHIBITED BY US AND INTERNATIONAL COPYRIGHT LAW
import io
import jsonrpc