Skip to content

Instantly share code, notes, and snippets.

View HongPong's full-sized avatar

Dan Feidt HongPong

View GitHub Profile
@HongPong
HongPong / easternbloc.txt
Created May 20, 2020 17:46
quick notes on history of Russia, China, eastern bloc
skimming some wikipedia pages last nite .. for more primary sources check marxists.org and analysis see https://libcom.org/
media
https://en.wikipedia.org/wiki/File:Anarkistimatruuseja.jpg
https://en.wikipedia.org/wiki/File:Berlin_Wall_1961-11-20.jpg
https://en.wikipedia.org/wiki/File:Bundesarchiv_Bild_183-57000-0512,_V._Parteitag_der_SED,_Honecker_spricht.jpg
https://en.wikipedia.org/wiki/File:Bundesarchiv_Bild_183-F0417-0001-028,_Berlin,_VII._SED-Parteitag,_1.Tag.jpg
https://en.wikipedia.org/wiki/File:DDR_steel_watch_tower_cropped.jpg
https://en.wikipedia.org/wiki/File:Delegates_of_the_8th_Congress_of_the_Russian_Communist_Party_(Bolsheviks).jpg
https://en.wikipedia.org/wiki/File:Kronstadt_attack.JPG
@HongPong
HongPong / gist:8f33357439ac9370065bfbdbad8e3d74
Created August 27, 2019 15:24
ACF responsive background image method
https://acfextras.com/responsive-background-image-acf/
function biscuit_responsive_hero_image_css(){
$image = get_field( 'hero_page_image' );
// Get the Image from ACF, then set a big and small version of it from predefined custom image sizes
$big_image_output = wp_get_attachment_image_url( $image, 'hero-slide'); // Use ACF Image ID not Array or URL
$small_image_output = wp_get_attachment_image_url( $image, 'mpu-medium');
// Add it to a custom CSS file that is already being enqueued. The handle ('hero-image-css' in this case), must match below and in the enqueue_style line.
$custom_css = "
<p class="MsoPlainText"><span style="font-size: 14pt; font-family: &quot;Cambria&quot;,&quot;serif&quot;;">Page 1 -- <i>The Minnesota Union Advocate, The Peoples Voice<o:p></o:p></i></span></p>
<p class="MsoPlainText"><span style="font-size: 14pt; font-family: &quot;Cambria&quot;,&quot;serif&quot;;"><span style="">&nbsp;</span></span><span style="font-size: 12pt; font-family: &quot;Cambria&quot;,&quot;serif&quot;;">St.
Paul Minnesota. <span style="">&nbsp;</span>March 29, 1934<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size: 14pt; font-family: &quot;Cambria&quot;,&quot;serif&quot;;"><o:p>&nbsp;</o:p><br>&#8220;<b>Governor Olson Indorsed </b></span><b><span style="font-size: 12pt; font-family: &quot;Cambria&quot;,&quot;serif&quot;;">[sic]</span></b><b><span style="font-size: 14pt; font-family: &quot;Cambria&quot;,&quot;serif&quot;;">
for Third Term As Farmer-Labor Convention Swing to Left</span></b><span style="font-size: 14pt; font-family: &quot;Cambria&quot;,&quot;serif&quot;;">&#82
@HongPong
HongPong / wordpress-windows-env
Last active March 28, 2023 06:52
wordpress windows
just a few quick notes on how to windows wordpress env it up
https://docs.devwithlando.io/tutorials/wordpress.html
https://joshpress.net/create-a-wordpres-site-with-lando/
https://roots.io/guides/dockerize-local-bedrock-and-sage-development-with-lando/
https://roots.io/bedrock/
https://roots.io/sage/
@HongPong
HongPong / indieweb-notes.html
Created February 20, 2019 23:06
indieweb items new
https://bridgy-fed.superfeedr.com/
https://www.w3.org/TR/websub/ the new pubsubhubbub
https://websub.rocks/
https://github.com/swentel/indieweb/issues
https://project.hubzilla.org/page/hubzilla/hubzilla-project
@HongPong
HongPong / drupal module upgrader gistfile1.txt
Last active June 29, 2018 18:40
debugging drupal_module_upgrader
logfile from drupal module upgrader
Using the Drush script found at /home/web/.config/composer/global/drush/drush/vendor/drush/drush/drush.launcher using pcntl_exec
Cache HIT cid: 8.1.17-commandfiles-0-ed536466710c134b3a425785534aa1d8 [0.01 sec, 2.97 MB] [debug]
Bootstrap to phase 0. [0.06 sec, 7.6 MB] [bootstrap]
Bootstrap to phase 1. [0.06 sec, 7.6 MB] [bootstrap]
Drush bootstrap phase : bootstrap_drupal_root() [0.07 sec, 8.32 MB] [bootstrap]
Initialized Drupal 8.5.3 root directory at /public_html/web [0.07 sec, 8.33 MB] [bootstrap]
Find command files for phase 1 (max=1) [0.07 sec, 7.12 MB]
@HongPong
HongPong / gist:0269dd184ea412c7250248cbb49dd96e
Created December 21, 2017 05:20
citybound does not install on windows
had this error with windows latest visual studio 2017 and the vs toolchain of rustup just installed.
Compiling chunky v0.1.0 (file:////Projects/citybound/engine/chunky)
warning: you should consider deriving a `Default` implementation for `compact_hash_map::CompactArray<T, A>`
--> engine\compact\src\compact_hash_map.rs:231:5
|
231 | / pub fn new() -> CompactArray<T, A> {
232 | | CompactArray {
233 | | ptr: PointerToMaybeCompact::default(),
234 | | cap: 0,
@HongPong
HongPong / mastodon JSON request returned
Last active December 11, 2017 18:28
getting https://mastodon.social/web/accounts/36238 in postman with: [{"key":"Accept","value":"application/activity+json","description":"","enabled":true}] should be also available at https://mastodon.social/users/HongPong/ which is preferred
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
"sensitive": "as:sensitive",
"movedTo": "as:movedTo",
"Hashtag": "as:Hashtag",
"ostatus": "http://ostatus.org#",