Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ndarville's full-sized avatar

N. Darville ndarville

  • Europe
View GitHub Profile
@ndarville
ndarville / examples.mdown
Last active December 9, 2019 11:32
“We’ve Been Hacked” Boilerplate Announcement

How Companies Communicated Being Hacked

It’s probably a pretty bad idea to have your site go down, when people are supposed to read the blog post explaining the hack.

Notice how another site reporting the hack received more attention than Twitter’s own announcement. Why was that?

@Hannahdouken has outsmarted the t-shirt bots stealing people's designs on Twitter.

This is a blocklist for the sites caught up in the sting operation. Below is a table with the offending sites and links, some of them archived for perpetuity, so you can add them to a blocking service like uBlock Origin and Pi-hole. All you have to do is add this link to your blocklist:

https://gist.githubusercontent.com/ndarville/6da8247493e8c06daaf306bb6c4b2c29/raw/7582b3cc7c9c8d2018ba2bd8b7b05a8f8a272cb1/blocklist.txt

For more, check out Waxy.org's coverage.

Please add your own links in the comments.

@ndarville
ndarville / README.md
Created August 22, 2017 18:16
Convert CSV to HTML table with Jekyll/Liquid

I keep forgetting how to do this, and I never find a place that answers it online. Gists usually have pretty decent SEO.

Check out my style GitHub repo where you can see my snippets.

@ndarville
ndarville / log.txt
Created April 18, 2019 17:20
mueller.pdf OCR log
$ ocrmypdf -l eng report.pdf mueller.pdf
INFO - 2: [tesseract] Too few characters. Skipping this page
WARNING - 2: [tesseract] unsure about page orientation
INFO - 8: [tesseract] Too few characters. Skipping this page
WARNING - 8: [tesseract] unsure about page orientation
WARNING - 12: [tesseract] lots of diacritics - possibly poor OCR
WARNING - 24: [tesseract] lots of diacritics - possibly poor OCR
WARNING - 27: [tesseract] lots of diacritics - possibly poor OCR
WARNING - 38: [tesseract] unsure about page orientation
WARNING - 38: [tesseract] lots of diacritics - possibly poor OCR
@ndarville
ndarville / subs.converted.srt
Last active January 20, 2019 16:52
Automated closed caption rip for t3EC1_gcr34@YT (click “Raw” to download)
1
00:00:00,000 --> 00:00:00,033
Edited at https://subtitletools.com
2
00:00:09,620 --> 00:00:09,630
white man gave you to the Bible you are
3
00:00:09,630 --> 00:00:12,860
@ndarville
ndarville / README.md
Last active January 16, 2019 01:49
Batch script for videogames to kill processes hogging resources

My computer is barely able to run Overwatch, and every now and then, I get the most ridiculous performance spikes

Save the contents of killresourcehogs.bat to a file (named whatever.bat) and just double-click on it to end the listed processes.

  • /f: Force
  • /t: Kill threads
  • ::: Comments

@ndarville
ndarville / README.md
Last active November 20, 2018 22:00
How to export your Tumblr site

How to export your Tumblr site

You will need to have Ruby installed and the knowledge of how to run commands from the terminal.

  1. Install the [jekyll-import][] gem.

     gem install jekyll-import
    
  2. Save the included export.rb to an empty folder.

  3. Open export.rb with a text editor and define the website to export under "url".

@ndarville
ndarville / followings.csv
Last active August 9, 2018 15:07
Current @GenFlynn tweets as of 2016-11-18 (tweets at https://gist.github.com/ndarville/5acfaf77deee44a0ae3e42155ef50614)
We can't make this file beautiful and searchable because it's too large.
ID,Since,Last tweeted at,Tweets,Favorites,Listed,Following,Followers,Screen name,Name,Verified,Protected,Bio,Status,Location,URL
37579871,2009-05-04 03:06:20 +0000,2016-11-18 05:30:35 +0000,31816,1244,68,2274,1739,07shari22,shari white,false,false,"NYC Born, Football Lover, Skin care Expert, Scientist and Lover of Quotes",@SweetFreedom29 i could not agree with u more! @CAIRNational,"Virginia Beach, Va",http://sharisaysthis.blogspot.com/
763548377036402689,2016-08-11 01:31:34 +0000,2016-11-14 04:31:50 +0000,5896,5741,14,1221,726,10_flick,George,false,false,"proud American, veteran sick of PC and people who complain but never vote, DT will win, Hillary for club fed",RT @Jonioroni1: @PolitixGal and it feels so good. We can't let up. DJT needs us.,United States,
38338408,2009-05-07 01:54:47 +0000,2016-11-18 02:32:38 +0000,11439,17716,28,888,677,1315Nani,Bronx NY for Trump!,false,false,Native New Yorker on the Trump Train 🚂because I know better! Standing with Trump/Pence2016 for all our VETERANS because we owe THE
@ndarville
ndarville / followings.csv
Last active March 18, 2018 00:40
@CamAnalytica tweets and followings (users followed) as of 2018-03-18 01:40 CET. (Check out the `Since` column.)
ID Since Last tweeted at Tweets Favorites Listed Following Followers Screen name Name Verified Protected Bio Status Location URL
14224719 2008-03-26 11:16:02 +0000 2018-03-16 13:34:31 +0000 12112 1715 22354 778 5538996 10DowningStreet UK Prime Minister true false Official channel for Prime Minister Theresa May's office, based at 10 Downing Street. RT @SalisburyNHS: Prime Minister @theresa_may visits @SalisburyNHS to thank Paul, Sarah and the A&E team in person for their outstand… https://t.co/b9EAWiYRvs 10 Downing Street, London http://www.gov.uk/number10
36088191 2009-04-28 15:09:01 +0000 2018-03-18 00:10:01 +0000 33110 24395 566 7778 213034 1iota 1iota false false 1iota is the ultimate connection for fans. We provide fans with exclusive opportunities and free tickets to TV shows, concerts, and special events. Join in on the fun & laughter at @SteveTVShow! See which celebs are stopping by & get tickets to be at a taping ---… https://t.co/s7DTnCBBJ8 LA, NY and Vegas http://www.1iota.com
@ndarville
ndarville / deleted.csv
Last active November 5, 2017 01:01
Tweet diff by @genflynn from 2016-11-18 vs 2017-11-05 (CET) https://gist.github.com/ndarville/5acfaf77deee44a0ae3e42155ef50614
ID Posted at Screen name Text
794000841518776320 2016-11-03 02:18:47 +0000 GenFlynn U decide - NYPD Blows Whistle on New Hillary Emails: Money Laundering, Sex Crimes w Children, etc...MUST READ! https://t.co/O0bVJT3QDr
787809039874949120 2016-10-17 00:14:46 +0000 GenFlynn RT @jenilynn1001: ENOUGH! 642,000 crimes against Texans by ILLEGAL IMMIGRANTS in 8 years! Don't you DARE call me racist for wanting to protect my kids! #Trump
786701080994451456 2016-10-13 22:52:08 +0000 GenFlynn RT @JasonMillerinDC: What say you, @chucktodd & @mitchellreports?: Michael Isikoff: NBC Should Release Full Juanita Broaddrick Interview https://t.co/U2KHJ6BvMb
785565431562063872 2016-10-10 19:39:28 +0000 GenFlynn RT @jd_Constitution: @GenFlynn @charismamag @FieldofFight https://t.co/OVs0wKVSVh
785564843365507073 2016-10-10 19:37:08 +0000 GenFlynn RT @JasonMillerinDC: Re: today's Congressional call: Nothing's changed. Mr. Trump’s campaign has always been powered by a grassroots movement, not Washington.