Skip to content

Instantly share code, notes, and snippets.

Avatar

kehlarn teichopsia

View GitHub Profile
@teichopsia
teichopsia / powercfg-win7-all-settings.bat
Created May 10, 2019 — forked from theultramage/powercfg-win7-all-settings.bat
Show/hide all hidden settings in Win7 Power Options
View powercfg-win7-all-settings.bat
@echo off
REM SET attrib=+ATTRIB_HIDE
SET attrib=-ATTRIB_HIDE
REM Harddisk settings
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 %attrib%
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 %attrib%
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 %attrib%
REM Sleep transition settings
@teichopsia
teichopsia / 1.google-analytics-proxy-nginx.conf
Created Jul 28, 2018 — forked from paivaric/1.google-analytics-proxy-nginx.conf
Google Analytics Proxy using Nginx to bypass Adblock and other blockers
View 1.google-analytics-proxy-nginx.conf
server {
listen 80;
server_name your.domain.com;
location = /analytics.js {
# you have to compile nginx with http://nginx.org/en/docs/http/ngx_http_sub_module.html (this is not default)
# and http://nginx.org/en/docs/http/ngx_http_proxy_module.html (it's a default module)
proxy_set_header Accept-Encoding "";
View infinite-loop-trick.log
$ cat test.js
function foo () { while (true) { } }
function bar () { return foo(); }
bar();
$ node test.js &
$ gdb attach $(pidof node)
0x00000bf778c63d5f in ?? ()
(gdb) b v8::internal::Runtime_StackGuard
Breakpoint 1 at 0x84a1f0
(gdb) print 'v8::V8::TerminateExecution'(0)
You can’t perform that action at this time.