Skip to content

Instantly share code, notes, and snippets.

View BenKalsky's full-sized avatar
🎯
Focusing

Ben Kalsky BenKalsky

🎯
Focusing
View GitHub Profile
@BenKalsky
BenKalsky / wp-addons.php
Last active April 4, 2023 12:52
Code Snippets for WordPress
////
// Code Snippets for functions.php
////
// Disable plugin auto-update email notification
add_filter('auto_plugin_update_send_email', '__return_false');
// Disable theme auto-update email notification
add_filter('auto_theme_update_send_email', '__return_false');

Keybase proof

I hereby claim:

  • I am benkalsky on github.
  • I am thecryptotips (https://keybase.io/thecryptotips) on keybase.
  • I have a public key ASCA-qrzTXP-dDS0-kGEuEE6O2DD_F2Nh1BaXmsDWINnqgo

To claim this, I am signing this object:

83a46a4e2f3eba673af7d33e837babfc87180f33f1701d3e3e34221bb14394d8dde33f3a013863ceea0582194a864251f578578fbdc167069c010fd686a03998
Verifying that "benkal.id" is my Blockstack ID. https://explorer.blockstack.org/name/benkal.id
Verifying my Blockstack ID is secured with the address 13ooNFWyeJrDmeNrVNwPRqJCb9D4NLpp6N https://explorer.blockstack.org/address/13ooNFWyeJrDmeNrVNwPRqJCb9D4NLpp6N
@BenKalsky
BenKalsky / readme2ghpage.rb
Created February 25, 2017 20:46 — forked from hopsoft/readme2ghpage.rb
Convert your README.md on master to index.md on gh-pages
#!/usr/bin/env ruby
# checkout the readme from the master branch
`git checkout gh-pages; git checkout master README.md`
path = `pwd`.gsub(/\n/, "")
readme_path = File.join(path, "README.md")
index_path = File.join(path, "index.md")
# write the index readme file
@BenKalsky
BenKalsky / gist:76abd81f3f062d913a01a1d5a7a79e0c
Last active January 22, 2017 12:20 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@BenKalsky
BenKalsky / dabblet.css
Created May 10, 2016 13:05
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@BenKalsky
BenKalsky / dabblet.css
Created April 8, 2015 16:29 — forked from mismith/dabblet.css
How to make 3-corner-rounded triangle in CSS (SO)
/**
* How to make 3-corner-rounded triangle in CSS (SO)
* http://stackoverflow.com/q/14446677/1397351
*/
.triangle {
position: relative;
background-color: orange;
text-align: left;
}
.triangle:before,
@BenKalsky
BenKalsky / dabblet.css
Created April 8, 2015 16:23
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;