Skip to content

Instantly share code, notes, and snippets.

View ottodevs's full-sized avatar
🥷
Hacking

Otto G ottodevs

🥷
Hacking
View GitHub Profile
@ottodevs
ottodevs / CrossOver.sh
Created March 9, 2024 20:23 — forked from santaklouse/CrossOver.sh
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@ottodevs
ottodevs / Random-string
Created November 8, 2018 02:51 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
@ottodevs
ottodevs / Atom_export_settings.md
Created July 28, 2018 21:02 — forked from michalczukm/Atom_export_settings.md
Atom: Backup all settings

Export:

  1. Copy from ${user}/.atom:
  • config.cson
  • keymap.cson
  • snippets.cson
  • styles.less
  1. Save installed packages list apm list --installed --bare > packages.list
$('#leftbar').remove();
$('#price').css({
'font-size': '50px',
'height': '60px',
'line-height': '60px'
});
@ottodevs
ottodevs / parity-nov6.csv
Created November 9, 2017 18:39 — forked from banteg/parity-nov6.csv
november 6 parity hack affected addresses and balances
address eth comment
0x3bfc20f0b9afcace800d73d2191166ff16540258 306276.272251399926202 polkadot
0x376c3e5547c68bc26240d8dcc6729fff665a4448 114939 iconomi
0x43ab622752d766d694c005acfb78b1fc60f35b69 21704.325572809991471999
0xc7cd9d874f93f2409f39a95987b3e3c738313925 16475.534165330527033716 musiconomi
0xdb0e7d784d6a7ca2cbda6ce26ac3b1bd348c06f8 6925
0x49eafa4c392819c009eccdc8d851b4e3c2dda7d0 4524.983603998439805528
0xbe17d91c518f1743aa0556425421d59de0372766 4360.6725
0x41849f3bd33ced4a21c73fddd4a595e22a3c2251 3238.1539315355843176
0x8655d6bf4abd2aa47a7a4ac19807b26b7609b61d 3000
@ottodevs
ottodevs / parity-nov6.csv
Created November 9, 2017 18:39 — forked from banteg/parity-nov6.csv
november 6 parity hack affected addresses and balances
0x3bfc20f0b9afcace800d73d2191166ff16540258 306276.272251399926202 polkadot
0x376c3e5547c68bc26240d8dcc6729fff665a4448 114939 iconomi
0x43ab622752d766d694c005acfb78b1fc60f35b69 21704.325572809991471999
0xc7cd9d874f93f2409f39a95987b3e3c738313925 16475.534165330527033716 musiconomi
0xdb0e7d784d6a7ca2cbda6ce26ac3b1bd348c06f8 6925
0x49eafa4c392819c009eccdc8d851b4e3c2dda7d0 4524.983603998439805528
0xbe17d91c518f1743aa0556425421d59de0372766 4360.6725
0x41849f3bd33ced4a21c73fddd4a595e22a3c2251 3238.1539315355843176
0x8655d6bf4abd2aa47a7a4ac19807b26b7609b61d 3000
@ottodevs
ottodevs / alexa.js
Created October 28, 2017 17:27 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
@ottodevs
ottodevs / .description.drphil.txt
Created October 13, 2017 21:51 — forked from inertia186/.description.drphil.txt
Dr. Phil (`drphil.rb`) is reimplementation of the "Winfrey" voting bot specification. The goal is to give everyone an upvote. See: https://steemit.com/radiator/@inertia/drphil-rb-voting-bot-update-fixes
This is the Dr. Phil bot for STEEM and GOLOS. Please have a look at the README.md file.
@ottodevs
ottodevs / StringToLower.sol
Created September 26, 2017 11:22 — forked from thomasmaclean/StringToLower.sol
Ethereum/Solidity toLower() equivalent, to transform strings to lowercase
pragma solidity ^0.4.11;
contract StringToLower {
function _toLower(string str) internal returns (string) {
bytes memory bStr = bytes(str);
bytes memory bLower = new bytes(bStr.length);
for (uint i = 0; i < bStr.length; i++) {
// Uppercase character...
if ((bStr[i] >= 65) && (bStr[i] <= 90)) {
// So we add 32 to make it lowercase
@ottodevs
ottodevs / gist:4b782d0115f0ec71a97395b014291679
Created September 7, 2017 10:30 — 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