After installing Kinto, I needed some additional tweaks:
- Disable the Super key behavior (source)
gsettings set org.gnome.shell.extensions.pop-cosmic overlay-key-action 'WORKSPACES'
gsettings set org.gnome.mutter overlay-key ''
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "time" | |
| ) | |
| type server struct { | |
| conns int |
| #!/bin/bash | |
| # Script should be run daily to move Downloads/ files to an archived folder. | |
| HOME="/home/hugo" | |
| YESTERDAY=$(date -d "yesterday 13:00" '+%Y-%m-%d') | |
| mkdir -p $HOME/ArchivedDownloads/$YESTERDAY | |
| mv $HOME/Downloads/* $HOME/ArchivedDownloads/$YESTERDAY |
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/crypto/nacl/auth" | |
| ) | |
| func main() { | |
| plaintext := "Hello folks!" |
| #!/usr/bin/bash | |
| parentdir=$(dirname "$@") | |
| cd $parentdir | |
| if [[ $@ == *.zip ]]; then | |
| outputdir=$(basename "$@" ".zip") | |
| fi | |
| if [[ $@ == *.rar ]]; then | |
| outputdir=$(basename "$@" ".rar") | |
| fi |
| // First install font like: https://blog.bam.tech/developer-news/add-a-custom-font-to-your-react-native-app | |
| import React from 'react'; | |
| import {Text as RNText, StyleSheet} from 'react-native'; | |
| export default class Text extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } |
| const user = { | |
| firstName: 'John', | |
| lastName: 'Doe', | |
| email: '[email protected]', | |
| } | |
| const handler = { | |
| get(target, property) { | |
| return target[property] || (property + "-not-found"); |
| import React, { Component } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import './index.css'; | |
| import registerServiceWorker from './registerServiceWorker'; | |
| class Dynamic extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { module: null }; | |
| } |
| ;; Teclados de Mac no Windows/Linux usando https://github.com/rbreaves/kinto/ | |
| ; Fixos pra sempre na minha memoria muscular... | |
| !r::Send #r | |
| !e::Send #e | |
| !d::Send #d | |
| !l::Send #l | |
| ; PC-style control movement | |
| #Backspace::Send ^{Backspace} |
| This didn't work with fswatch, but chokidar with poll monitor was fine: | |
| `chokidar '*.json' -p --poll-interval 1000 -c 'say "{event}" && open -a Yoink {path}'` | |
| I was using this to debug a HTTP server that generated log files every X minutes, so I didn't have to keep checking the terminal. | |
| Another useful idea is to send results of a script to yourself via [Telegram](https://github.com/fabianonline/telegram.sh): | |
| `chokidar '*.json' -p --poll-interval 1000 -c 'check_file.sh {path} | telegram -'` |