Skip to content

Instantly share code, notes, and snippets.

View OR13's full-sized avatar
💭
Building tools for Self Sovereign Identity and Decentralized App Devs

Orie Steele OR13

💭
Building tools for Self Sovereign Identity and Decentralized App Devs
View GitHub Profile
@OR13
OR13 / hello.html
Created August 27, 2014 23:37
hello world
<script>
console.log('hello world!')
</script>
@OR13
OR13 / haskell-round-to-nearest-multiple.hs
Last active September 15, 2021 05:38
Round N to nearest multiple of M
-- | Ternary operator.
-- Usage: (i > 0) ? i $ 1
(?) :: Bool -> a -> a -> a
True ? x = const x
False ? _ = id
-- round n to nearest multiple of m
roundToNearestMultiple :: Int -> Int -> Int
roundToNearestMultiple n m = (m >= n) ? m $ (n `div` m + 1) * m
@OR13
OR13 / ie-stylesheet-test.js
Created October 28, 2015 16:44
IE Stylesheet Test
// http://stackoverflow.com/questions/9906794/internet-explorers-css-rules-limits
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
@OR13
OR13 / change-google-apps-primary-domain.md
Last active June 5, 2018 20:28
How To Change Your Google Apps Primary Domain

How To Change Your Google Apps Primary Domain

These instructions will allow you to change your google apps for business primary domain without writing an code...

  1. Open this page in a new tab: https://developers.google.com/admin-sdk/directory/v1/reference/customers/update
  2. Click Try It
  3. Make sure you’re logged into your relevant Google account (you should see your mail address in the top right corner).
  4. Next to customerKey type: my_customer
  5. Next to fields type: customerDomain
@OR13
OR13 / gource-osx.md
Created January 27, 2016 15:47
Git Source Visualization

open terminal

brew install ffmpeg
brew install gource

cd into a git repo...

@OR13
OR13 / hello-world.js
Last active April 26, 2016 02:37
hello-world.js
alert('hello world');
@OR13
OR13 / delete-messages.js
Last active February 2, 2017 16:28
Slack Hacks
// not working yet...
$('ts-message:last > div.action_hover_container.stretch_btn_heights.narrow_buttons > a.ts_icon.ts_icon_small_ellipsis.ts_tip.ts_tip_top.ts_tip_float.ts_tip_delay_60').click()
@OR13
OR13 / Memory.md
Last active August 29, 2016 20:29

It is the nature of memory that it is continuously and relentlessly self modifying abstracted reconstructed and ultimately synthesized into something that never really existed.

The primal human desire to live a life without regret takes the helm.

Gary Steele

@OR13
OR13 / fb.md
Created September 12, 2016 23:08
facebook is a cancer

I don't often reply to these, but as a privacy and security advocate, I need to level with you.

Facebook as a company has built some awesome things, I have a lot of respect for the React Team and the FP push at FB.

That being said, Facebook is a privacy and security destroying cancer.

Using Facebook trains unsafe behavior, because sharing information exposes users to attacks which would otherwise be more difficult to pull off. In addition, thanks to the 3rd Party doctrine, anything shared on Facebook can be used against you at some point in the future, and you have no reasonable expectation of privacy.

People who take online security seriously do not have Facebook accounts, or if they do, the accounts are entirely fake. I'm sure the security devs make plenty of money more than they would working for the FBI, DEA or NSA... and its reasonable considering they work for all 3 at once, and many others (foreign governments, and police among them).

@OR13
OR13 / troll.sh
Last active October 13, 2016 14:15
Troll
while true; do say "troll"; sleep 2; done