Skip to content

Instantly share code, notes, and snippets.

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

RivDesign rivman

🏠
Working from home
View GitHub Profile
@rivman
rivman / css-processors.html
Last active February 1, 2022 21:40
Process CSS - Packages & Use (NKRD 2022)
DEVELOPING TOOLS :
-----------------
1. purifycss-extended
https://www.npmjs.com/package/purifycss-extended
A function that takes content (HTML/JS/PHP/etc) and CSS, and returns only the used CSS.
PurifyCSS Extended does not modify the original CSS files. You can write to a new file, like minification.
This leave the CSS original intact, not modity (not combine clases, not ordering fonts and media queries)
@rivman
rivman / UserInput.php
Created November 18, 2021 09:05
Sanitize User Input (filter_var) - RD Fork 11-2011 Php 7+
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Christopher Tombleson <chris@cribznetwok.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@rivman
rivman / UserInput.php
Created November 18, 2021 08:51 — forked from chtombleson/UserInput.php
Helper Class for sanitizing user input in PHP
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Christopher Tombleson <chris@cribznetwok.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@rivman
rivman / Apple tvOS 13 screensaver
Last active July 30, 2021 16:52 — forked from 1a57danc3/Apple tvOS 13 screensaver
List liens Video HS 1980x1080 HDR + HEVC ///RIVDESIGN
Seals
url-4K-HDR :
https:\\sylvan.apple.com\Aerials\2x\Videos\SE_A016_C009_HDR_20190717_3m30s_HDR_4K_HEVC.mov
url-4K-SDR :
https:\\sylvan.apple.com\Aerials\2x\Videos\SE_A016_C009_SDR_20190717_3m30s_SDR_4K_HEVC.mov
url-1080-H264 :
https:\\sylvan.apple.com\Videos\SE_A016_C009_SDR_20190717_3m30s_SDR_2K_AVC.mov
url-1080-HDR :
https:\\sylvan.apple.com\Aerials\2x\Videos\SE_A016_C009_HDR_20190717_3m30s_HDR_2K_HEVC.mov
url-1080-SDR :
@rivman
rivman / entries.json
Last active July 30, 2021 14:16
Apple TV 4K Aerial screensavers entry list. https://sylvan.apple.com/Aerials/2x/Aerial Movie Location Apple TV Screensavers.json
{
"version" : 1,
"initialAssetCount" : 4,
"assets" : [
{
"id" : "6154CA95-ED90-446A-9C29-F46EDA2B3741",
"url-1080-SDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_2K_SDR_HEVC.mov",
"url-1080-HDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_2K_HDR_HEVC.mov",
"url-4K-SDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_4K_SDR_HEVC.mov",
"url-4K-HDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_4K_HDR_HEVC.mov",

here are the latest set of urls for the apple 4k sdr videos/screensavers ( https://9to5mac.com/2018/09/17/tvos-12-features/ ) which includes the nasa/ISS space flyovers:

the url was found here:

JohnCoates/Aerial#463 (comment)

quote:

"The format changed somewhat; you need to extract the JSON out of here https://sylvan.apple.com/Aerials/resources.tar. The JSON includes the URLs to the videos and the time markers for the tvOS 12 captions as a dictionary, keyed by time. The values of this dictionary are keys which can be found in the strings plists."

@rivman
rivman / unlimited_trials_babeledit.txt
Created July 10, 2021 11:16
Activate BabelEdit temporarily / Unlimited trial
Obviously for educative purposes only.
Furthermore, this DOESN'T activate BabelEdit permanently.
If you like the software, buy it, the devs deserve it.
Since I have no money to buy it, I discovered a workaround for unlimited trials.
It's quite a annoying workaround, but ... it works!
Firstly go to "c:\windows\system32\drivers\etc\" and open the "hosts" file in Notepad/Notepad++/VSCode/Sublime/Atom/whatever as admin (if you don't open it as admin, it won't let you save it).
Add this line at the end of the file:
@rivman
rivman / Windows
Created April 25, 2021 13:41 — forked from warifp/Windows
Crack Sublime Text 3.2.2 Build 3211
How to Crack Sublime Text 3 with Hex Editor
1. Download & Install Sublime Text 3.2.2 Build 3211
2. Visit Hexed.it
3. Open file sublime_text.exe
4. Search address 97 94 0D
5. Change to 00 00 00
6. Export File
@rivman
rivman / xdebug-monokai.css
Created January 31, 2021 16:15 — forked from baranok/xdebug-monokai.css
theme for php xdebug
/**
*
* XDEBUG - Monokai scheme
*
* Palette:
* #272822 - grayish darkgreen, default background
* #F8F8F2 - ivory white, default font
* #75715E - tan, comment
* #FD971F - orange URLs without commas
* #AE81FF - purple numbers
@rivman
rivman / wp_remove_assets.php
Created January 28, 2021 23:58 — forked from sareiodata/wp_remove_assets.php
WP Remove Assets
<?php
/*
* Plugin Name: WP Remove Assets
* Plugin URI: https://www.cozmsolabs.com
* Version: 0.1
* Description: Filter particular scripts and style to load in posts or pages that don't need it.
* Author: Cristian Antohe
* Author URI: https://www.cozmoslabs.com/
*/