git show <hash>:<file>
git log -p <filename>
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
use std::io::prelude::*; | |
use std::net::TcpStream; | |
use std::io::BufReader; | |
use std::env; | |
fn get_tld_server(tld: &str) -> Option<String> { | |
let mut stream = TcpStream::connect("whois.iana.org:43").unwrap(); | |
stream.write_all(format!("{}\n", tld).as_bytes()).unwrap(); //Send the tld | |
let reader = BufReader::new(stream); |
import time | |
import sys | |
import logging | |
import pychromecast | |
from scapy.all import * | |
mac_address = '00:00:00:00:00:00' | |
def arp_display(pkt): | |
if pkt[ARP].op == 1: | |
if pkt[ARP].hwsrc == mac_address: |
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD
.csv.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.
This was written in 2014. It is not a good reference for Rust today, though the content is still correct.
cheats.rs looks like a good alternative.
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Status Board</title> | |
<script type="text/javascript"> | |
//TODO:Fill out the information below to configure your board. | |
//This page contains everything you need to stand up a page that shows time, StatusCake, | |
//Weather Underground, and Trello information. To learn more, check out http://leanpub.com/trellodojo | |
//You may customize it as needed to fit your screen sizes and organization's needs. |