Skip to content

Instantly share code, notes, and snippets.

View lazzarello's full-sized avatar

Lee Azzarello lazzarello

View GitHub Profile
@lazzarello
lazzarello / copy-of-cathode-bingo-chat.txt
Created January 13, 2024 21:30
copy-of-cathode-bingo-chat.txt
TealDeer 1:13 pm
We need to make a cathode chat bingo
👍1
card
cuz I would have mentioning Cremaster on mine lol
👍2
raisin entity 1:13 pm
didn't u hear was a soup of auras, of flavors i find delicious. been obsessing about 1982 epcot 3d exhibit film "magic journeys" all week and it had some rhyming ambiance
1. https://www.cathodetv.com/
2. GOOGLE CHROME DEV TOOLS ( ctrl + shift + i )
3. Network Tab
4. Filter box (left side of network tab) type "chunklist"
5. Click first chunklist
6. General tab -> Headers -> Request URL + copy
7. VLC! Open Network ( Ctrl + n )
8. PASTE URL
@lazzarello
lazzarello / deployment.yaml
Created November 8, 2022 20:06
Grafana with SSO
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
labels:
app: grafana
spec:
replicas: 1
selector:
@lazzarello
lazzarello / dao.sol
Created February 7, 2018 21:55
dao solidity
contract SendBalance {
mapping (address => uint) userBalances;
bool withdrawn = false;
function getBalance(address u) constant returns (uint) {
return userBalances[u];
}
function addToBalance() {
userBalances[msg.sender] += msg.value;
}
root@c3a71bcefab1:/# pip install secp256k1
Collecting secp256k1
Using cached secp256k1-0.13.2.tar.gz
Requirement already satisfied: cffi>=1.3.0 in /usr/local/lib/python3.6/dist-packages (from secp256k1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.6/dist-packages (from cffi>=1.3.0->secp256k1)
Building wheels for collected packages: secp256k1
Running setup.py bdist_wheel for secp256k1 ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-hwl7dzqn/secp256k1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp_vxftvowpip-wheel- --python-tag cp36:
0.29.1
Using bundled libsecp256k1
@lazzarello
lazzarello / quantstamp.sol
Created January 29, 2018 20:20
quantstamp ico contract
pragma solidity ^0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
@lazzarello
lazzarello / proposal.md
Last active August 2, 2016 19:50
awesome foundation proposal
python -c 'print (lambda r,w,h:"\n".join("".join((" ","🍕")[c]
for c in s)for s in reduce(lambda a,y:a+[[r>>(a[y][x-1]*4+a[y][x]*2+a[y][(x+
1)%w])&1for x in range(w)]],range(h),[[0]*(w/2)+[1]+[0]*(w/2)])))(90,63,31)'
require 'time'
require 'json'
(ENV.fetch("OHURI") and ENV.fetch("OHAUTH"))
min_time = Time.new(2015,05,13)
# This will automatically transform valid JSON into a Ruby data type, in this case an array of hashes. USEFUL!
all_servers = JSON.parse(`openhosting -j servers info`)
# The "type" key for a server object is misleading. Versions of the API (which
apt-cache depends mysql-server-5.5 | grep Depends
# some shell crap to parse this into a list to pass to apt-get
apt-get install -y mysql-client-5.5 libdbi-perl perl libc6 libgcc1 libstdc++6 zlib1g debconf psmisc passwd lsb-base mysql-server-core-5.5 initscripts mysql-common adduser debconf heirloom-mailx libhtml-template-perl
apt-get -d mysql-server-5.5
dpkg --unpack /var/cache/apt/archives/mysql-server-5.5_5.5.38-0+wheezy1_amd64.deb
# do your crazy configuration stuff here
dpkg --configure mysql-server-5.5