From 8219c611a4e74dc1ba76687ec6ef786527f0042f Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Thu, 14 May 2020 13:37:33 -0400 Subject: [PATCH] inline frontmatter styles in HTML rather than a bunch of baby CSS files --- content/hillary/index.md | 2 +- content/notes/bernie-sanders-bern-app-data/index.md | 2 +- content/notes/css-waving-hand-emoji/index.md | 4 ++-- .../finding-candidates-subdomain-takeovers/index.md | 2 +- content/notes/how-to-pull-request-fork-github/index.md | 10 +++++++++- content/notes/millenial-with-hillary-clinton/index.md | 6 +++--- .../notes/presidential-candidates-404-pages/index.md | 2 +- content/notes/shodan-search-queries/index.md | 2 +- layouts/partials/head/styles.html | 7 +++++-- 9 files changed, 24 insertions(+), 13 deletions(-) diff --git a/content/hillary/index.md b/content/hillary/index.md index 03a35b09..60afd686 100644 --- a/content/hillary/index.md +++ b/content/hillary/index.md @@ -14,4 +14,4 @@ resources: - src: "thumb.png" --- -Video is property of [Hillary for America](https://www.hillaryclinton.com/), the [Democratic National Committee](https://democrats.org/), and [CNN / WarnerMedia](http://cnnpressroom.blogs.cnn.com/). © 2016. +Video is property of [Hillary for America](https://www.hillaryclinton.com/), the [Democratic National Committee](https://democrats.org/), and [CNN / WarnerMedia](https://cnnpressroom.blogs.cnn.com/). © 2016. diff --git a/content/notes/bernie-sanders-bern-app-data/index.md b/content/notes/bernie-sanders-bern-app-data/index.md index a9bf08c8..146b6284 100644 --- a/content/notes/bernie-sanders-bern-app-data/index.md +++ b/content/notes/bernie-sanders-bern-app-data/index.md @@ -57,7 +57,7 @@ There were even unverified claims that [BERN was leaking voter ID numbers](https Others have noted that web-based organizing tools like BERN have been used by campaigns at all levels since President Obama's well-oiled, futuristic machine in 2007. This is also true, and I'm a big fan of the trend they started. -But the latter category of databases — like [NationBuilder](https://nationbuilder.com/) and, more notably, [NGP VAN's VoteBuilder](https://act.ngpvan.com/votebuilder) software based on the Obama campaign's inventions and now used by almost all Democratic campaigns across the United States — are secured and strictly guarded. Volunteer accounts need to be created and approved by paid campaign organizers and are locked down to provide the bare minimum amount of information necessary for one to canvass or phone bank a shortlist of voters. Every single click is also recorded in a [detailed log](sanders-campaign-audit.pdf) down to the millisecond. (This is how [Bernie's organizers got busted](http://time.com/4155185/bernie-sanders-hillary-clinton-data/) snooping around Hillary's VoteBuilder data last cycle, by the way.) +But the latter category of databases — like [NationBuilder](https://nationbuilder.com/) and, more notably, [NGP VAN's VoteBuilder](https://act.ngpvan.com/votebuilder) software based on the Obama campaign's inventions and now used by almost all Democratic campaigns across the United States — are secured and strictly guarded. Volunteer accounts need to be created and approved by paid campaign organizers and are locked down to provide the bare minimum amount of information necessary for one to canvass or phone bank a shortlist of voters. Every single click is also recorded in a [detailed log](sanders-campaign-audit.pdf) down to the millisecond. (This is how [Bernie's organizers got busted](https://time.com/4155185/bernie-sanders-hillary-clinton-data/) snooping around Hillary's VoteBuilder data last cycle, by the way.) {{< image src="images/votebuilder-audit.png" width="750" link="/notes/bernie-sanders-bern-app-data/sanders-campaign-audit.pdf" >}} [NGP VAN's audit of the Sanders campaign's VoteBuilder activity](/notes/bernie-sanders-bern-app-data/sanders-campaign-audit.pdf) diff --git a/content/notes/css-waving-hand-emoji/index.md b/content/notes/css-waving-hand-emoji/index.md index 5be22300..91cd062d 100644 --- a/content/notes/css-waving-hand-emoji/index.md +++ b/content/notes/css-waving-hand-emoji/index.md @@ -20,7 +20,7 @@ Below are the code snippets you can grab and customize to make your own ["waving {{< codepen username="jakejarvis" id="pBZWZw" left-tab="css" right-tab="result" >}} -### CSS: +## CSS: ```css @@ -43,7 +43,7 @@ span.wave { } ``` -### HTML: +## HTML: ```html {linenos=false} diff --git a/content/notes/finding-candidates-subdomain-takeovers/index.md b/content/notes/finding-candidates-subdomain-takeovers/index.md index 404db234..909df110 100644 --- a/content/notes/finding-candidates-subdomain-takeovers/index.md +++ b/content/notes/finding-candidates-subdomain-takeovers/index.md @@ -63,7 +63,7 @@ subtake -f sonar_output.txt -c fingerprints.json -t 50 -ssl -a -o vulnerable.txt This could take quite a while — up to a day, depending on your CPU, memory, and bandwidth — so I usually run it on a VM in the cloud and use [Linux's `screen` command](https://www.howtoforge.com/linux_screen) to keep it running and check in periodically. There will also be many unavoidable false positives that you'll need to check yourself by trying to claim the abandoned name on the corresponding service's portal, which is why I keep using the term _potential_ takeovers. -I also have a collection of root domains of companies offering bounties through [HackerOne](https://hackerone.com/directory/) or [Bugcrowd](https://bugcrowd.com/programs) at a [different GitHub repository](https://github.com/jakejarvis/bounty-domains/). Using the [`grep`-friendly text file](https://github.com/jakejarvis/bounty-domains/blob/master/grep.txt), it's easy to use [`grep`](http://man7.org/linux/man-pages/man1/grep.1.html) to narrow down your `vulnerable.txt` list even more: +I also have a collection of root domains of companies offering bounties through [HackerOne](https://hackerone.com/directory/) or [Bugcrowd](https://bugcrowd.com/programs) at a [different GitHub repository](https://github.com/jakejarvis/bounty-domains/). Using the [`grep`-friendly text file](https://github.com/jakejarvis/bounty-domains/blob/master/grep.txt), it's easy to use [`grep`](https://man7.org/linux/man-pages/man1/grep.1.html) to narrow down your `vulnerable.txt` list even more: ```bash {linenos=false} grep -f grep.txt vulnerable.txt diff --git a/content/notes/how-to-pull-request-fork-github/index.md b/content/notes/how-to-pull-request-fork-github/index.md index dff1797c..fa3c1558 100644 --- a/content/notes/how-to-pull-request-fork-github/index.md +++ b/content/notes/how-to-pull-request-fork-github/index.md @@ -10,10 +10,18 @@ tags: - Open Source - GitHub image: "images/step7-2.png" +css: | + svg#fork { + float: right; + margin-bottom: 6px; + margin-left: 12px; + width: 150px; + height: 150px; + } draft: false --- - + Contributing to an open-source project can be intimidating at first. The convoluted process of submitting your improvements for approval via a [**pull request**](https://help.github.com/en/articles/about-pull-requests) certainly doesn't help. diff --git a/content/notes/millenial-with-hillary-clinton/index.md b/content/notes/millenial-with-hillary-clinton/index.md index 390bda53..c74426ee 100644 --- a/content/notes/millenial-with-hillary-clinton/index.md +++ b/content/notes/millenial-with-hillary-clinton/index.md @@ -24,7 +24,7 @@ My goal here isn't to convince every Bernie believer to jump ship and support he **News Flash:** We aren't in the general election right now. Not even close. We're in the middle of _our own party's_ primary, where the field of opponents we are choosing from are all our friends. They're both on our side. They both agree on an overall vision for our country. Of course as individuals we choose one who we like better than the other, and root for her or him and ideally invest some time and money to help however we can. I chose Hillary a long time ago because I feel she is, if anything, overqualified for the position. Especially during this increasingly turbulent period of foreign affairs, we can't afford to allow an entry-level applicant to experiment with our standing in the world and learn our relationships with other nations on-the-fly. -After working for months as a fellow on Hillary's campaign in New Hampshire leading up to the first primary in the country, I could feed you all the standard campaign talking points in my sleep: After graduating from Yale Law she went to work at the [Children's Defense Fund](http://www.childrensdefense.org/), not a high-paying New York law firm. She [went undercover](http://www.nytimes.com/2015/12/28/us/politics/how-hillary-clinton-went-undercover-to-examine-race-in-education.html?_r=0) in Alabama to investigate discrimination in public schools. She [got juveniles out of adult prisons](http://www.huffingtonpost.com/entry/huffpost-criminal-justice-survey-democratics_us_56bb85eae4b0b40245c5038b). She [gave 8 million children healthcare](https://www.hillaryclinton.com/briefing/factsheets/2015/12/23/hillary-clintons-lifelong-fight-for-quality-affordable-health-care-for-all-americans/). But there's just one thing that, for some reason, is hard for people to believe: at her core she is a good, caring, and loving person who has had only selfless intentions her entire life. I promise you. +After working for months as a fellow on Hillary's campaign in New Hampshire leading up to the first primary in the country, I could feed you all the standard campaign talking points in my sleep: After graduating from Yale Law she went to work at the [Children's Defense Fund](https://www.childrensdefense.org/), not a high-paying New York law firm. She [went undercover](https://www.nytimes.com/2015/12/28/us/politics/how-hillary-clinton-went-undercover-to-examine-race-in-education.html?_r=0) in Alabama to investigate discrimination in public schools. She [got juveniles out of adult prisons](https://www.huffingtonpost.com/entry/huffpost-criminal-justice-survey-democratics_us_56bb85eae4b0b40245c5038b). She [gave 8 million children healthcare](https://www.hillaryclinton.com/briefing/factsheets/2015/12/23/hillary-clintons-lifelong-fight-for-quality-affordable-health-care-for-all-americans/). But there's just one thing that, for some reason, is hard for people to believe: at her core she is a good, caring, and loving person who has had only selfless intentions her entire life. I promise you. {{< image src="images/9e58a-1bvweqv_ve2_c1tw5-ihrhw.jpg" width="400" >}}The best birthday gift. 🎉{{< /image >}} @@ -32,9 +32,9 @@ I had the incredible chance to meet Hillary the weekend before the New Hampshire I walked up nervously and told her that it was my birthday (it was) and all I wanted was for her to win, which got her attention, and I thanked her for the spotlight she had been shining on the rampant addiction epidemic in the state. Instead of nodding her head and thanking me for my support and moving along like I assumed she would — she knew she would have my vote no matter what — she locked eyes with me and asked me how I'd been affected by the issue. It felt as though she dropped everything in her life and literally put her jam-packed schedule on pause to make sure I was okay and to learn more about some dude she just met ten seconds ago. I told her that I had fallen into the trap myself when I was younger, and that the [part of her detailed plan](https://www.hillaryclinton.com/issues/addiction/) that addresses the overprescription of narcotics by doctors could have prevented me from doing so. As my conversation with her grew longer and longer, and as she respectfully asked me more and more questions about my story, I totally forgot I was casually chatting on the sidewalk with a freaking former First Lady, Senator, and Secretary of State. I promise you again: She. Is. A. Real. Person. -> "I know I have some work to do, particularly with young people, but I will repeat again what I have said this week. Even if they are not supporting me now, I support them." [»](http://www.vox.com/2016/2/9/10956458/hillary-clinton-new-hampshire) +> "I know I have some work to do, particularly with young people, but I will repeat again what I have said this week. Even if they are not supporting me now, I support them." [»](https://www.vox.com/2016/2/9/10956458/hillary-clinton-new-hampshire) -But at the end of the day, all I ask is for you to keep in mind the stakes in this overall election. They have never been higher. Last year, the spectacle of Donald "The Donald" Trump running to be the leader of the free world was purely comical and impossible not to laugh at, from the moment he entered the race [via gold-plated escalator](https://www.youtube.com/watch?v=Ab9AnZaLL1U) whilst blasting Neil Young. But as this racist xenophobic pumpkin is rapidly racking up _actual real-life delegates_ thanks to votes from the [poorly educated](http://www.vox.com/2016/2/24/11107788/donald-trump-poorly-educated) and/or the [white supremacists](http://www.huffingtonpost.com/entry/donald-trump-white-supremacist-sec-primary_us_56cf4437e4b0bf0dab31222f), the thought of him being within striking distance of the desk in the Oval Office is slowly twisting a knife into the pit of my stomach. This is real. This is the big picture. This is why we need to team up and work together in any way possible as soon as possible. +But at the end of the day, all I ask is for you to keep in mind the stakes in this overall election. They have never been higher. Last year, the spectacle of Donald "The Donald" Trump running to be the leader of the free world was purely comical and impossible not to laugh at, from the moment he entered the race [via gold-plated escalator](https://www.youtube.com/watch?v=Ab9AnZaLL1U) whilst blasting Neil Young. But as this racist xenophobic pumpkin is rapidly racking up _actual real-life delegates_ thanks to votes from the [poorly educated](https://www.vox.com/2016/2/24/11107788/donald-trump-poorly-educated) and/or the [white supremacists](https://www.huffingtonpost.com/entry/donald-trump-white-supremacist-sec-primary_us_56cf4437e4b0bf0dab31222f), the thought of him being within striking distance of the desk in the Oval Office is slowly twisting a knife into the pit of my stomach. This is real. This is the big picture. This is why we need to team up and work together in any way possible as soon as possible. I'm aware of the street cred young Democrats collect by claiming they hated Hillary before hating Hillary was cool. Hating on HRC has gone more viral than Damn Daniel. But when you ask these young voters to explain why they think she's a liar or untrustworthy or a criminal, they can rarely put their distaste for her into actual words — or if they do, they just vomit hashtag-ready soundbites from Fox News or The Young Turks. #Benghazi. #Emails. #ReleaseTheTranscripts. Joining in on the Republican-led attacks and stooping to their level is no way to advocate for the candidate you support. If you support Bernie for the nomination, you do that by going out and talking to others about why **his** policies rock, what **his** life story is, how **your** story relates to **his** story and **his** policies, etc. — not by spending your day mercilessly assassinating the character of a woman you've never met and a woman you might very well be voting for in eight short months, unless you're able to stomach the idea of President Trump. During primary season, you win by focusing on the merits of your own candidate, not the flaws you see in another. diff --git a/content/notes/presidential-candidates-404-pages/index.md b/content/notes/presidential-candidates-404-pages/index.md index af480db7..f8a3e2f0 100644 --- a/content/notes/presidential-candidates-404-pages/index.md +++ b/content/notes/presidential-candidates-404-pages/index.md @@ -21,7 +21,7 @@ More recently, though, little-known hidden Easter eggs on ["404 Not Found"](http # 1. Elizabeth Warren — [elizabethwarren.com](https://elizabethwarren.com/asdfasdf404) {#warren} -I'm a _huge_ sucker for Kate McKinnon's spot-on impression of Warren on Saturday Night Live. And [unfortunately](https://twitter.com/realdonaldtrump/status/1097116612279316480), seeing a campaign embrace SNL is like a breath of fresh air these days. [Watch all of the Kate McWarren videos so far here; you won't regret it.](http://www.nbc.com/saturday-night-live/cast/kate-mckinnon-15056/impersonation/elizabeth-warren-287903) +I'm a _huge_ sucker for Kate McKinnon's spot-on impression of Warren on Saturday Night Live. And [unfortunately](https://twitter.com/realdonaldtrump/status/1097116612279316480), seeing a campaign embrace SNL is like a breath of fresh air these days. [Watch all of the Kate McWarren videos so far here; you won't regret it.](https://www.nbc.com/saturday-night-live/cast/kate-mckinnon-15056/impersonation/elizabeth-warren-287903) {{< image src="images/warren.png" alt="Elizabeth Warren" />}} diff --git a/content/notes/shodan-search-queries/index.md b/content/notes/shodan-search-queries/index.md index 18838789..4c045f13 100644 --- a/content/notes/shodan-search-queries/index.md +++ b/content/notes/shodan-search-queries/index.md @@ -138,7 +138,7 @@ title:"Slocum Fleet Mission Control" {{< image src="images/refrigeration.png" alt="Example: CAREL PlantVisor Refrigeration Units" />}} -### [Nordex Wind Turbine](http://www.nordex-online.com/en/products-services/wind-turbines.html) Farms [🔎 →](https://www.shodan.io/search?query=http.title%3A%22Nordex+Control%22+%22Windows+2000+5.0+x86%22+%22Jetty%2F3.1+%28JSP+1.1%3B+Servlet+2.2%3B+java+1.6.0_14%29%22) +### [Nordex Wind Turbine](https://www.nordex-online.com/en/products-services/wind-turbines.html) Farms [🔎 →](https://www.shodan.io/search?query=http.title%3A%22Nordex+Control%22+%22Windows+2000+5.0+x86%22+%22Jetty%2F3.1+%28JSP+1.1%3B+Servlet+2.2%3B+java+1.6.0_14%29%22) ```plaintext {linenos=false} http.title:"Nordex Control" "Windows 2000 5.0 x86" "Jetty/3.1 (JSP 1.1; Servlet 2.2; java 1.6.0_14)" diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index e3bb1749..3365c44c 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -1,9 +1,12 @@ {{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "sass/main.scss" . | resources.ToCSS (dict "targetPath" "css/main.css") | resources.PostCSS (dict "config" "postcss.config.js") }} -{{/* Page-specific styles set via front matter, scoped via SCSS */}} +{{/* Page-specific styles set via front matter, scoped via SCSS and inlined */}} {{ with .Params.css }} {{- $target := path.Join $.File.Dir "css/inline.scss" }} {{- $css := . | resources.FromString $target | resources.ToCSS | resources.PostCSS (dict "config" "postcss.config.js") -}} - + + {{ end }}