Edit 2024-12-18:
Support for mouse emulation has now been implemented. See https://zmk.dev/docs/keymaps/behaviors/mouse-emulation
The instructions below are outdated.
Edit 2024-12-18:
Support for mouse emulation has now been implemented. See https://zmk.dev/docs/keymaps/behaviors/mouse-emulation
The instructions below are outdated.
black = '#282828'; | |
red = '#cc241d'; // red | |
green = '#98971a'; // green | |
yellow = '#d79921'; // yellow | |
blue = '#458588'; // blue | |
magenta = '#b16286'; // pink | |
cyan = '#689d6a'; // cyan | |
white = '#a89984'; // light gray | |
lightBlack = '#928374'; // medium gray | |
lightRed = '#fb4934'; // red |
This is how to copy your files from a given git branch to a new empty branch, using a squash merge.
This example will copy files from branch old-branch
to target-branch
# First be sure, that you don't have uncommitted working changes. They will be deleted
# Checkout a new empty branch without history
git checkout --orphan target-branch
This is a simple sample script for uploading a file using the file input tag of HTML. As the important point, the file is sent as the byte array for using Google Apps Script. By this, at Google Apps Script side, the byte array can be converted to a blob using a simple script.
<input id="file" type="file" onchange="saveFile(this)" />
<script>
function saveFile(f) {
@font-face { | |
font-family: "SF Mono Nerd Font"; | |
font-style: normal; | |
font-weight: 200; | |
src: url(data:font/ttf;charset-utf-8;base64,AAEAAAANAIAAAwBQRkZUTXsmXkoACMTsAAAAHEdERUYAJwoAAAjEzAAAAB5PUy8ylhnsxgAAAVgAAABgY21hcBy2s+UAACjIAAAHNGdhc3D//wADAAjExAAAAAhnbHlmTxZyvAAAV+gAB+6YaGVhZBgZL5YAAADcAAAANmhoZWEMkw4vAAABFAAAACRobXR4ys8LvwAAAbgAACcObG9jYSHQirwAAC/8AAAn7G1heHAKmAkGAAABOAAAACBuYW1lfOfFjAAIRoAAAA6jcG9zdAecfzsACFUkAABvnQABAAAAAQAAdT3/UF8PPPUACwgAAAAAANoD8rkAAAAA2gPyufjv/LgMAwhuAAAACAACAAEAAAAAAAEAAAee/hIAAAp5+O/7swwDAGQAAAAAAAAAAAAAAAAAAAmNAAEAAAn6CQMAXAAAAAAAAgAAAAEAAQAAAEAAAAAAAAAAAwW2AZAAAgAEBTMEzAAAAJkFMwTMAAACzABkAosAAAILAAkAAAIAAAAgAAKPAAAYAgAAAAAAAAAAVUtXTgAAACD7Agee/hIAAAeeAe5gAAGfAAAAAAQ9BaMAAAAgAAEE8gAABPIAAAAAAAAE8gAABPIB8ATyAV4E8gBEBPIAiQTyAAAE8gBGBPICIATyAZ8E8gF9BPIAXgTyAGQE8gGSBPIAaATyAcQE8gDGBPIAkwTyAKkE8gCtBPIAiQTyAJAE8gCTBPIAkwTyAJ8E8gCBBPIAjATyAcQE8gGSBPIAywTyAGgE8gDLBPIA1QTyAHIE8gBKBPIAvATyAIIE8gCgBPIA5gTyAP4E8gB8BPIAmQTyAP0E8gCnBPIA2ATyAQcE8gBjBPIAmQTyAGgE8gDGBPIAaATyALYE8gCLBPIAbQT |
black = '#282828'; | |
red = '#cc241d'; // red | |
green = '#98971a'; // green | |
yellow = '#d79921'; // yellow | |
blue = '#458588'; // blue | |
magenta = '#b16286'; // pink | |
cyan = '#689d6a'; // cyan | |
white = '#a89984'; // light gray | |
lightBlack = '#928374'; // medium gray | |
lightRed = '#fb4934'; // red |
As a developer, it bothers me when someone sends me a large pdf file compared to the number of pages. Recently, I recieved a 12MB scanned document for just one letter-sized page... so I got to googlin, like I usually do, and found ghostscript!
to learn more abot ghostscript (gs): https://www.ghostscript.com/
What we are interested in, is the gs command line tool, which provides many options for manipulating PDF, but we are interested in compressign those large PDF's into small yet legible documents.
credit goes to this answer on askubuntu forum: https://askubuntu.com/questions/3382/reduce-filesize-of-a-scanned-pdf/3387#3387?newreg=bceddef8bc334e5b88bbfd17a6e7c4f9
#!/usr/bin/env expect -f | |
# Start the CISCO VPN client on a Mac. Adapted from | |
# https://blog.felipe-alfaro.com/2014/05/23/automating-cisco-anyconnect-secure-mobility-client-on-mac-os-x/ | |
set HOSTNAME vpn.server.com | |
set USER_NAME user.name | |
set PASSWORD password | |
spawn /opt/cisco/anyconnect/bin/vpn |
#!/bin/bash | |
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; | |
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It | |
# only accepts ESC backslash for ST. | |
function print_osc() { | |
if [[ -n $TERM ]] ; then | |
printf "\033Ptmux;\033\033]" | |
else | |
printf "\033]" |
import Foundation | |
func sayHello2() { | |
//sleep(5) | |
print("Hello!") | |
} | |
#if false | |
public func pthread_create( |