Skip to content

Instantly share code, notes, and snippets.

Avatar

S M. Lingelser mcne65

View GitHub Profile
@mcne65
mcne65 / infosec_newbie.md
Created Aug 21, 2020 — forked from mubix/infosec_newbie.md
How to start in Infosec
View infosec_newbie.md
@mcne65
mcne65 / infosec_newbie.md
Created Aug 21, 2020 — forked from mubix/infosec_newbie.md
How to start in Infosec
View infosec_newbie.md
@mcne65
mcne65 / hosting-on-github.md
Created Feb 25, 2020 — forked from TylerFisher/hosting-on-github.md
Basic steps for hosting on Github
View hosting-on-github.md

Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level
@mcne65
mcne65 / hosting-on-github.md
Created Feb 25, 2020 — forked from TylerFisher/hosting-on-github.md
Basic steps for hosting on Github
View hosting-on-github.md

Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level
View Pytorch Numpy Array Observations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Pytorch Numpy Array Observations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mcne65
mcne65 / Contract_calls.sol
Created Feb 1, 2020 — forked from critesjosh/Contract_calls.sol
CALL vs CALLCODE vs DELEGATECALL in Solidity
View Contract_calls.sol
pragma solidity ^0.4.15;
contract C1 {
uint public num;
address public sender;
function callSetNum(address c2, uint _num) public {
if(!c2.call(bytes4(sha3("setNum(uint256)")), _num)) revert(); // C2's num is set
}
@mcne65
mcne65 / Contract_calls.sol
Created Feb 1, 2020 — forked from critesjosh/Contract_calls.sol
CALL vs CALLCODE vs DELEGATECALL in Solidity
View Contract_calls.sol
pragma solidity ^0.4.15;
contract C1 {
uint public num;
address public sender;
function callSetNum(address c2, uint _num) public {
if(!c2.call(bytes4(sha3("setNum(uint256)")), _num)) revert(); // C2's num is set
}
@mcne65
mcne65 / Splitter.sol
Created Feb 1, 2020 — forked from critesjosh/Splitter.sol
A contract to split funds between addresses. Demostrates pushing vs pulling transfers
View Splitter.sol
pragma solidity ^0.4.6;
contract Splitter {
mapping(address => uint) public balances;
function unsafeSplit(address address1, address address2)
public
payable
returns(bool success)
@mcne65
mcne65 / Splitter.sol
Created Feb 1, 2020 — forked from critesjosh/Splitter.sol
A contract to split funds between addresses. Demostrates pushing vs pulling transfers
View Splitter.sol
pragma solidity ^0.4.6;
contract Splitter {
mapping(address => uint) public balances;
function unsafeSplit(address address1, address address2)
public
payable
returns(bool success)