Skip to content

Instantly share code, notes, and snippets.

View digitalfun's full-sized avatar

Florian Schmid @github digitalfun

  • Switzerland
View GitHub Profile
@digitalfun
digitalfun / post.js
Created May 15, 2024 08:51 — forked from AlphaT7/post.js
PHP POST JSON JavaScript Fetch Example 1
fetch("post.php", {
method: "post",
mode: "cors",
headers: {
"Content-Type": "application/json"
},
body: {data: "data"}
})
.then(response => {
return response.text(); // returns text that can used as html
@digitalfun
digitalfun / 55-bytes-of-css.md
Created September 26, 2022 09:33 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@digitalfun
digitalfun / Synology-Diskstation-Git.md
Created April 4, 2016 14:42 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation
@digitalfun
digitalfun / ronj-autohotkey.ahk
Created May 13, 2012 14:45 — forked from ronjouch/ronj-autohotkey.ahk
Collection of AutoHotkey scripts I use
; Variables definition
; -----------------------------------------------------------------------------
EnvGet, userProfile, USERPROFILE
Software := userProfile . "\Dropbox\software\"
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window
; -----------------------------------------------------------------------------
ToggleWinMinimize(WindowTitle)
{
SetTitleMatchMode,2