Skip to content

Instantly share code, notes, and snippets.

View brianveltman's full-sized avatar
👀
Don't say

Brian Veltman brianveltman

👀
Don't say
View GitHub Profile
@brianveltman
brianveltman / WhatsApp.lsrules
Last active March 10, 2022 09:40
Little Snitch - WhatsApp rules
{
"description" : "",
"name" : "WhatsApp",
"rules" : [
{
"action" : "allow",
"creationDate" : 1646904968.954586,
"modificationDate" : 1646904968.954586,
"owner" : "me",
"ports" : "3478",
@brianveltman
brianveltman / settings.json
Created October 22, 2018 14:11
VS Code settings
{
"files.autoSave": "onFocusChange",
"diffEditor.ignoreTrimWhitespace": false,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"trailing-spaces.trimOnSave": true,
"trailing-spaces.saveAfterTrim": true,
"window.zoomLevel": -2
}
@brianveltman
brianveltman / supportDeskFuzz.md
Last active November 17, 2017 19:29
simple fizzbuzz
/* A FizzBuzz assignment with DRY and clean code
Not the fastest nor shortest code, but readable for everyone */

$start = 100;
for ($iteration = 1; $iteration <= $start; $iteration++) {
  $endOfLine = "</br>";
  $dividableByThree = $iteration % 3 === 0;
  $dividableByFive = $iteration % 5 === 0;
 if ($dividableByThree &amp;&amp; $dividableByFive) {
@brianveltman
brianveltman / id_rsa.pub
Created July 20, 2017 17:40
Public SSH key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC68l7z8n8sjsabt5ZFYIkKXH78hbVsUMsXlaynagY8P6SpqoKsSaJf81/BKHM//m5B7582QeGzLbR2EaPnMos6t0j/6oY/ZWsan4ldhy9Og5FL+bCDMsim98eig4GXsuQH7u+aSNjj/DvxzEINXBiXWA5VAuIYZw7tVQjH/2rGwFdSPnQf3c8zyz6AAZPtvJPsAqlNbcSPe2uw1xdg6PUa0PDPctsEJV/QZUUfCjxiFrw8Vvadm/Pblpz5zv7PKL/eewPwztScwDPeAOenpgiVbCd/S80j4XdNSGONbWHZc5gKHITwXIOuxqD6c1Ie2z6nPb9dlnR+e+LNvPPYL1YXHQ7x+pCJf4rcjMyONro24ldDyBRmQ45zwf6SXRAE+DxcoML9qGZkXGg1NetfmAU1VrThHoqXbolgGJ/xXbw1CUz15F494pRuma71Pm5YtPeWblLiL4BGxAVBkZbXYGmCaDgzQpLFdID+4NKWT8C2qILmebR30940hLNqj7XfTuw+s5yWwf5h+wA/bkJNnM1/+FJiE2Ec/9frtpj2FCMTvCqkOyd4T0+PKibk+TwlnGQncmLLqCvKE0EuLsWTVHViPkSJJubxBb00GUc7INrnYkk8uldnuFUBX3r+Ee/wuM9228yQX9oz5G/0MweG/9bSwZSnZCK2mMaA88sk585Skw== brian.veltman@exact.com
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
@brianveltman
brianveltman / NewReactStatelessComponent.sublime-snippet
Last active November 7, 2016 13:21
Stateless functional component
<snippet>
<content><![CDATA[
import React from 'react';
const ${1:this} = () => <div className="${1:this}">Hello</div>;
export default ${1:this};
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
@brianveltman
brianveltman / pre-commit
Created November 6, 2016 14:48 — forked from broofa/pre-commit
Git pre-commit hook that runs `eslint` with the `--fix` option to fix up issues where possible, and adds "fix"ed files into the commit
#!/bin/bash
cd "$(git rev-parse --show-toplevel)"
ESLINT="node_modules/.bin/eslint"
pwd
if [[ ! -x "$ESLINT" ]]; then
printf "\t\033[41mPlease install ESlint\033[0m (npm install eslint)\n"
exit 1
fi
@brianveltman
brianveltman / NewReactPropType.sublime-snippet
Created November 5, 2016 13:27
Create new PropType in React
<snippet>
<content><![CDATA[
${1:Component}.propTypes = {
${2:method}: React.PropTypes.${3:type}.isRequired
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>proptype</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
@brianveltman
brianveltman / NewReactComponent.sublime-snippet
Created November 5, 2016 13:26
SublimeText 3 snippet to create React component
<snippet>
<content><![CDATA[
import React from 'react';
class ${1:componentName} extends React.Component {
render() {
return(
<div className="${1:componentName}">
</div>
)