Skip to content

Instantly share code, notes, and snippets.

View orbanbalage's full-sized avatar
🏠
Working from home

Balázs Orbán orbanbalage

🏠
Working from home
View GitHub Profile
@varhub
varhub / Install msu file.md
Created November 29, 2016 19:54
Windows - Install msu file

Install msu file (Windows Update Package)

Inside a msu file (a file with the extension msu) there can be Windows updates (security updates, critical updates, updates, update rollups or hotfixes) or downloadable setup packages. msu stands for Microsoft Update Standalone Package.

To install an .msu update package, you can either double click it, or run Wusa.exe together with the full path of the file:

 wusa.exe \
@davehax
davehax / GetEveryoneExceptExternalUsersPrincipal.ps1
Last active June 26, 2023 11:33
This is an example script that uses the Client Side Object Model (CSOM) in PowerShell to get the "Everyone except external users" Principal.
$siteUrl = "https://mysharepointsite.sharepoint.com/sites/subsite"
# Set headers
$headers = @{
"Authorization"="Bearer ";
}
$authRealm = "";
# Make an invalid request. We will extract the GUID from the Response.
try {
@CMCDragonkai
CMCDragonkai / text_shortening.md
Last active March 14, 2024 21:20
CLI: Text Shortening (Text to ASCII Compression)

Text Shortening

Tools like gzip and xz compress bitstrings to bitstrings. We want something designed to do lossless compression on short to medium strings and produce printable ASCII or any kind of printable text. This would allow us to create our own URL shortening system.

We need to combine these 2:

@jaredhowland
jaredhowland / clear-font-cache.md
Last active November 6, 2024 14:41
Clear Mac OS X Font Caches
@glueckpress
glueckpress / GitHub-Desktop-Bitbucket.md
Last active February 6, 2025 13:18
[How-to] Use GitHub Desktop to clone and commit to a Bitbucket repository just as you would with any GitHub repository. (Mac)

⚠️ Note: this guide is from 2016 – a long time on the internet. Content may be outdated, check the comments for more recent info.


Clone Bitbucket Repository and Add it to GitHub Desktop App (Mac)

You can’t clone a Bitbucket repo using GithHub Desktop directly. Instead you would have to:

  1. Clone the Bitbucket repo locally via command line.
  2. Add the cloned repository to your GitHub Desktop app.
@Grimthorr
Grimthorr / pending-updates.ps1
Created November 9, 2015 16:03
PowerShell script to list the pending/missing Windows updates.
$UpdateSession = New-Object -ComObject Microsoft.Update.Session
$UpdateSearcher = $UpdateSession.CreateupdateSearcher()
$Updates = @($UpdateSearcher.Search("IsHidden=0 and IsInstalled=0").Updates)
$Updates | Select-Object Title
@taniarascia
taniarascia / index.html
Last active March 30, 2025 07:01
HTML Skeleton file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@sgringwe
sgringwe / check-pdf-validity.sh
Created September 27, 2015 23:07
Check pdf validity using ghostscript
gs -dNOPAUSE -dBATCH -sDEVICE=nullpage valid.pdf
GPL Ghostscript 9.16 (2015-03-30)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
(return code 0)
: gs -dNOPAUSE -dBATCH -sDEVICE=nullpage invalid.pdf
@0XDE57
0XDE57 / config.md
Last active March 7, 2025 05:54
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable. I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//