Skip to content

Instantly share code, notes, and snippets.

View bearlyrunning's full-sized avatar

Kat bearlyrunning

View GitHub Profile
/var/log/apache2/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
create 400 root root
sharedscripts
postrotate
@bearlyrunning
bearlyrunning / questions.js
Last active July 13, 2018 02:08
Zhihu cleanup script - unfollow
// This script saves all followed question urls and titles in a hashmap => data.json
// { "url":"title", "url":"title", ...}
const puppeteer = require('puppeteer');
var fs = require('fs');
(async () => {
const browser = await puppeteer.launch({headless: false})
const page = await browser.newPage()
const pagenum = 25 // This is the number of pages + 1
@bearlyrunning
bearlyrunning / unvote.js
Last active June 20, 2018 04:36
Zhihu cleanup script - unvote
// Unvote everything on https://www.zhihu.com/people/username/activities
// Based on this https://gist.github.com/z11i/2daf934c60d1c4088a07c4df7779f10d
function unvote() {
window.scrollTo(0, document.body.scrollHeight);
setTimeout(function() {
console.log('unfollowed');
// Cover different button types
let list = document.querySelectorAll('.Button.VoteButton.VoteButton--up.is-active');
let list2 = document.querySelectorAll('.Button.LikeButton.is-active.ContentItem-action');
@bearlyrunning
bearlyrunning / Brutalist Websites
Created July 11, 2018 05:46
Web Dev Inspirations
http://brutalistwebsites.com/
@bearlyrunning
bearlyrunning / offsec.md
Created January 17, 2019 10:52 — forked from jivoi/offsec.md
Penetrating Testing/Assessment Workflow

Penetrating Testing/Assessment Workflow & other fun infosec stuff

https://github.com/jivoi/pentest

My feeble attempt to organize (in a somewhat logical fashion) the vast amount of information, tools, resources, tip and tricks surrounding penetration testing, vulnerability assessment, and information security as a whole*