Skip to content

Instantly share code, notes, and snippets.

View johnbocook's full-sized avatar
💯
I come here for the dark theme.

John Bocook johnbocook

💯
I come here for the dark theme.
View GitHub Profile
@johnbocook
johnbocook / interview-questions.md
Created April 22, 2023 02:50 — forked from jvns/interview-questions.md
A list of questions you could ask while interviewing

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="A description of the page" />
<meta name="author" content="Author Name" />
<link rel="icon" type="image/x-icon" href="/fav/icon/location/name.ico" />
/* You can use @media or link to a seperate print stylesheet
<link rel="stylesheet" href="global.css">
<link rel="stylesheet" href="print.css" media="print">
<link rel="stylesheet" href="specific.css" media="type and (feature)">
<link rel="stylesheet" href="landscape.css" media="(orientation: landscape)">
<link rel="stylesheet" href="portrait.css" media="(orientation: portrait)">
*/
# Example 1: Block only Googlebot
User-agent: Googlebot
Disallow: /
# Example 2: Block Googlebot and Adsbot
User-agent: Googlebot
User-agent: AdsBot-Google
Disallow: /
# Example 3: Block all crawlers except AdsBot (AdsBot crawlers must be named explicitly)
@johnbocook
johnbocook / imageAdjustFilters.css
Created December 9, 2022 13:38
Css filters to adjust the look of a png file.
/*Filter styles*/
.saturate { filter: saturate(3); }
.grayscale { filter: grayscale(100%); }
.contrast { filter: contrast(160%); }
.brightness { filter: brightness(0.25); }
.blur { filter: blur(3px); }
.invert { filter: invert(100%); }
.sepia { filter: sepia(100%); }
.huerotate { filter: hue-rotate(180deg); }
@johnbocook
johnbocook / pocket app - full width article.js
Created January 13, 2016 20:41
Userscript Tamper Monkey Grease Monkey - Makes pocket app (getpocket.com) articles full width.
// ==UserScript==
// @name GetPocket - Page adjustments
// @namespace https://getpocket.com/a/read/
// @description Fixes page layout
// @author jbocook
// @copyright 2015
// @version 1.0.0
// @include *getpocket.com/a/read/*
// @grant none
// ==/UserScript==
<?php
return [
'dsn' => 'mysql:host=localhost;dbname=fanatos',
'username' => 'root',
'password' => 'root',
];
<?php
return [
'xsolla' => [
'api_key' => null,
'merchant_id' => null,
'project_id' => null,
'project_key' => null,
],
];
@johnbocook
johnbocook / Facebook follower count.php
Created December 27, 2013 06:27
Get Facebook follower count
<?php $json = file_get_contents('http://api.facebook.com/method/fql.query?format=json&query=select+fan_count+from+page+where+page_id%3D475488679182886');
$decode = json_decode($json);
echo $decode[0]; // Fan Count
?>
@johnbocook
johnbocook / AD-Search.ps1
Last active March 16, 2021 07:14
Powershell Active Directory Search
$username = Read-Host -Prompt 'Type in the username:?'
csvde -f searchAD.txt -p subtree -l "sAMAccountName,cn,distinguedName" -r "(&(objectClass=User)(sAMAccountName=$username))"
Import-Csv .\searchAD.txt | Out-GridView -Title "Active Directory"