Tool to parse journalctl output, find failed ssh login attempts and log them in a CSV file
sudo journalctl -f | go run authtracker.go
using System; | |
using Xamarin.Forms; | |
public static class Utils | |
{ | |
public static Rectangle GetAbsoluteBounds(this Xamarin.Forms.View element) | |
{ | |
Element looper = element; | |
var absoluteX = element.X + element.Margin.Top; |
launchctl setenv APP_VERSION "$APP_VERSION" | |
echo "App Version: $(launchctl getenv APP_VERSION)" | |
echo "" | |
export APP_VERSION=1.2.3 | |
launchctl setenv APP_VERSION "1.2.3" | |
export APP_VERSION=$(launchctl getenv APP_VERSION) |
using System; | |
using System.Threading.Tasks; | |
namespace Cli | |
{ | |
public class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var cmdr = new Commander<Unit, string>(() => new ReturnStuffCommnad<string>("12345")) |
# list top apps with open handles | |
sudo lsof -n | cut -f1 -d' ' | uniq -c | sort | tail | |
#show limits | |
launchctl limit maxfiles | |
#increase limits | |
sudo launchctl limit maxfiles 65536 200000 |
config files for linux/unix systems |
// Place your key bindings in this file to overwrite the defaultsauto[] | |
[ | |
//vim | |
{ | |
"key": "ctrl+alt+shift+v", | |
"command": "toggleVim" | |
}, | |
// clojureVSCode | |
{ | |
"key": "alt+enter", |
//go build -ldflags -Hwindowsgui | |
package main | |
import ( | |
"os/exec" | |
) | |
func main() { | |
cmd := exec.Command("procexp.exe") | |
err := cmd.Start() |
//USAGE: go run iota_sync.go http://IP:PORT | |
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" |
package main | |
import ( | |
"encoding/xml" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"strings" | |
) |