Skip to content

Instantly share code, notes, and snippets.

@zach-is-my-name
zach-is-my-name / ExpressDrills1.js
Last active December 14, 2016 20:35
MadLibs.js
'use strict';
// Request and response object drills
// ==================================
const express = require('express');
const app = express();
// your code here.
app.get('/:adjective1/:adjective2/:adjective3/:verb/:name/:noun/:place/:adverb', function(req,res) {
@zach-is-my-name
zach-is-my-name / ExpressDrills2.js
Created December 14, 2016 20:34
ExpressDrills2.js
'use strict';
// Request and response object drills
// ==================================
const express = require('express');
const app = express();
// your code here.
app.get('/:adjective1/:adjective2/:adjective3/:verb/:name/:noun/:place/:adverb', function(req,res) {
#Something
// define version
pragma solidity ^0.4.2;
// defines the "owned" contract
contract owned {
// defines the "variable" as an "address" and makes it public *** Need more info on public vs non public
address public owner;
// defines the owner of the contract as the sender *** The original sender? Any sender? It's not obvious here but I think I know the answer.
ACCOUNTS
Account Addresses:
Zach (Main Account): 0x6fc919051900e8431281b4bad53761a5f993afa1
Zach 2: 0xbe4ee5624b6eaba6016fa5375f91c81f6f6462fa
Zach 3: 0x89ed7b3b263c2e0569607ece223c06d95ffdd5d4
GENERAL COMMANDS
Login/Unlock Account
web3.personal.unlockAccount("yourAddress", "password")
Send Ether
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposals",
@zach-is-my-name
zach-is-my-name / gist:fedaeca927134a3bd99914d404d76d3f
Created November 30, 2017 23:00
Atom New Release: Vim-Mode-Plus.less, style.less
style.less
atom-text-editor .cursor {
opacity: 1 !important;
// color: white;
// background-color: hsl(180, 24%, 12%);
}
_____________________________
vim-mode-plus.less
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@zach-is-my-name
zach-is-my-name / .bashrc
Created April 7, 2022 01:12 — forked from anonymous/.bashrc
How to change cursor shape, color, and blinkrate of Linux Console
##############
# pretty prompt and font colors
##############
# alter the default colors to make them a bit prettier
echo -en "\e]P0000000" #black
echo -en "\e]P1D75F5F" #darkred
echo -en "\e]P287AF5F" #darkgreen
echo -en "\e]P3D7AF87" #brown
echo -en "\e]P48787AF" #darkblue

#Fixing “WARNING: UNPROTECTED PRIVATE KEY FILE!” on Linux

If you are getting this error then you probably reset the permissions on your hidden .ssh directory in your user folder, and your keys aren’t going to work anymore. It’s very important that these files not be writable by just anybody with a login to the box, so openssh will give you an error if you try to use them.

The full error message:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@