Skip to content

Instantly share code, notes, and snippets.

@DartPower
DartPower / ms-office-dl-links
Last active March 28, 2025 20:37
MS Office Download Links
go mod edit -module {NEW_MODULE_NAME}
-- rename all imported module
find . -type f -name '*.go' \
-exec sed -i -e 's,{OLD_MODULE},{NEW_MODULE},g' {} \;
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@db-pj
db-pj / gist:235947b0d98a042248b57639c956842d
Last active March 28, 2025 20:32
Screaming Frog Command Line
screamingfrogseospider \
--crawl https://www.digitalbrands.com \
--headless \
--config ~/sf.seospiderconfig \
--task-name 'DigitalBrands.com Crawl Report' \
--project-name 'DigitalBrands.com' \
--export-format 'gsheet' \
--google-drive-account 'pj@digitalbrands.com' \
--export-custom-summary "Site Crawled,Date,Time,Total URLs Encountered,Total URLs Crawled,Total Internal blocked by robots.txt,Total External blocked by robots.txt,URLs Displayed,Total Internal URLs,Total External URLs,Total Internal Indexable URLs,Total Internal Non-Indexable URLs,JavaScript:All,JavaScript:Uses Old AJAX Crawling Scheme URLs,JavaScript:Uses Old AJAX Crawling Scheme Meta Fragment Tag,JavaScript:Page Title Only in Rendered HTML,JavaScript:Page Title Updated by JavaScript,JavaScript:H1 Only in Rendered HTML,JavaScript:H1 Updated by JavaScript,JavaScript:Meta Description Only in Rendered HTML,JavaScript:Meta Description Updated by JavaScript,JavaScript:Canonical Only in Rendered HTML,JavaScript:Canonical Mismatch,JavaScript:Noindex
@xTCry
xTCry / README.md
Last active March 28, 2025 20:28
[Nginx] Config for block site bots / Конфиг для блокировки вредного трафика от хостинг провайдеров

[Nginx] Конфиг для блокировки вредного трафика от хостинг-провайдеров

Nginx config for block site bad traffic (bots)

Что произошло?

Было замечено, что на сайт идет множество запросов с симуляцией поведения Android девайса с прокруткой содержимого страницы и ее повторного открытия уже с другой информацией об устройстве.

Запросы обычно происходили на одни и те же страницы (в основном только на две-три). Адрес запроса был сформирован так, что сервер переадресовывал на корректный адрес. Например, с /info/info/.

У более чем 95% подозрительных запросов были использованы IPv6 адреса. Что явно затрудняло обнаружение продозрительного трафика, т.к. нагрузки почти не было и сайт работал в штатном режиме, но была замечена накрутка посещаемости.

@rossarioking
rossarioking / WindowsUpdatesByPassWSUS.ps1
Last active March 28, 2025 20:26
PowerShell Script to Bypass Local WSUS Server and Pull Updates Straight from the Internet. #PowerShell
# Stop the Windows Update service
Stop-Service -Name wuauserv
# Remove the registry key
Remove-Item HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Recurse
# Start the Windows Update service
Start-Service -name wuauserv
@staltz
staltz / introrx.md
Last active March 28, 2025 20:23
The introduction to Reactive Programming you've been missing
@greghelton
greghelton / MovieEngagement.sql
Created January 1, 2012 21:42
MySQL Database for Movie Theater, Screens and Movies
create database MovieEngagement;
connect MovieEngagement;
create table Theater (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
create table Screen (
@thomasdarimont
thomasdarimont / readme.md
Last active March 28, 2025 20:21
Example for decoding a JWT Payload with your Shell (bash, zsh...)

Setup

Add this to your .profile, .bashrc, .zshrc...

decode_base64_url() {
  local len=$((${#1} % 4))
  local result="$1"
  if [ $len -eq 2 ]; then result="$1"'=='
  elif [ $len -eq 3 ]; then result="$1"'=' 
  fi
 echo "$result" | tr '_-' '/+' | openssl enc -d -base64

🧩 Benefits of Microinteractions in Web Designing

💡 Micro-interactions are small moments where the user and design interact. When they are well designed, micro-interaction enhances the user’s experience with the design. When they are poorly designed, they damage the experience.

🎯 The micro-interactions are small, suitable animations or feedback that occur in an app or website. They give a better user experience by providing visual cues and responsiveness. For example, a button changing color when clicked is a micro-interaction.

🔄 Various Types of Micro-interactions are:

  • 🔘 Buttons: The buttons are usually interactive elements that respond when you click or tap.