Skip to content

Instantly share code, notes, and snippets.

View valeIT's full-sized avatar

Valentino Urbano valeIT

View GitHub Profile

Fixing macOS Mojave

Dark main menu without the rest of dark mode

  1. Set Light mode
  2. defaults write -g NSRequiresAquaSystemAppearance -bool Yes
  3. Log out and log back in
  4. Set Dark mode
@valeIT
valeIT / Program.cs
Created September 16, 2018 20:50 — forked from akderebur/Program.cs
Wildstar M3 Model Load/Export
using System;
using System.IO;
using System.Text;
namespace M3Exporter
{
class Program
{
static void Main(string[] args)
{
@valeIT
valeIT / CardView.h
Created April 11, 2018 10:17 — forked from gelldur/CardView.h
iOS view that looks like CardView from Android
#import <UIKit/UIKit.h>
//Based on: https://github.com/aclissold/CardView
@interface CardView : UIView
@end
@valeIT
valeIT / cloudSettings
Created March 19, 2018 22:10 — forked from orta/cloudSettings
Visual Studio code settings
{"lastUpload":"2018-02-01T15:04:55.257Z","extensionVersion":"v2.8.7"}
@valeIT
valeIT / brew-sync.sh
Created February 17, 2018 20:45 — forked from witt3rd/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@valeIT
valeIT / brew-sync.sh
Created February 17, 2018 20:45 — forked from jpawlowski/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@valeIT
valeIT / RPG.bat
Created January 12, 2018 20:57
My first and, quite frankly, rubbish attempt at an RPG.
@echo off
title RPG
/min
color 0a
:Values
cls
set health=500
set dmg=15
set coins=50
set kills=0
@valeIT
valeIT / Breakpoints_v2.xcbkptlist
Created July 20, 2017 19:58 — forked from Ashton-W/Breakpoints_v2.xcbkptlist
My User Breakpoints_v2.xcbkptlist
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "2"
version = "2.0">
<Breakpoints>
<!-- All Exceptions -->
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
@valeIT
valeIT / google-serp.user.js
Created May 25, 2016 16:19 — forked from nikcub/google-serp.user.js
rewrite google search result page to link directly to search result url
// Google SERP URL rewrite
//
// User script will rewrite search engine results page for Google and place real
// links to results rather than links that proxy back via google.
//
// So you go straight to the page when you click and you can copy/paste the link
//
// Install:
// 1. Download to desktop/wherever
// 2. Open Chrome extensions page (Window -> Extensions) or URL chrome://extensions
import Cocoa
import MASShortcut
func pow() {
let rect = NSScreen.mainScreen()?.frame
let window = NSWindow(contentRect: rect!, styleMask: NSBorderlessWindowMask, backing: .Buffered, `defer`: false)
window.backgroundColor = NSColor.clearColor()
window.opaque = false
window.alphaValue = 1
window.makeKeyAndOrderFront(NSApplication.sharedApplication())