Skip to content

Instantly share code, notes, and snippets.

View kramanathan01's full-sized avatar

kramanathan01

View GitHub Profile
@kramanathan01
kramanathan01 / crossover-howtocompile.md
Created November 2, 2022 05:38 — forked from sarimarton/crossover-howtocompile.md
CodeWeavers CrossOver - How to compile from source! for macOS

This has been forked from https://gist.github.com/Alex4386/4cce275760367e9f5e90e2553d655309

For the latest discussion, see the comments there.

Updated guide (for CrossOver 20.0.0)

  • Install dependencies: Xcode developer tools (Command Line); cmake; gcc or clang to compile C code; bison >= 3.0 (can be upgraded via homebrew); xquartz; flex; mingw-w64; pkgconfig; you might also need freetype with brew install freetype
  • Make sure the right version of bison is in path: brew upgrade bison then check version and cd /usr/local/Cellar/bison/<version>/bin and export PATH="$(pwd):$PATH" then check with which bison
  • Download source (CodeWeavers CrossOver FOSS version Source) and extract it (double click the file in Finder or untar it: tar -xz source.tar.gz)
  • Add missing wine/include/distversion.h file with this content:
@kramanathan01
kramanathan01 / gitcom.md
Created June 8, 2020 05:48 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@kramanathan01
kramanathan01 / Forecast.js
Last active October 5, 2018 19:49
Scriptable JS for displaying 7-day forecast from DarkSky
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: magic;
let place = await Location.current() // Use Current Location
let json = await getWeather(place)
// Deserialize
let currentTemp = json.currently.apparentTemperature
let summary = json.minutely.summary
let currentMessage = "It's currently " + currentTemp + " degrees. " + summary