Skip to content

Instantly share code, notes, and snippets.

@drjova
drjova / bluetooth.sh
Last active May 13, 2021 09:06 — forked from piteur/fix.md
Fix mac os crappy bluethooh quality
sudo killall coreaudiod
sudo killall blued
sudo renice -5 (pid bluetoothaudio)
sudo renice -5 (pid iTunes)
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 80
@drjova
drjova / get_marcxml.py
Created March 27, 2018 09:42 — forked from szymonlopaciuk/get_marcxml.py
Bulk ORCID Validate
#!/usr/bin/env python
""""
Bulk download records from legacy, usage: `get_marcxml.py [number_of_records] > [output_marcxml]`
To migrate: `inspirehep migrator populate -f [path_to_marcxml]`
"""
from lxml.etree import fromstring, tostring
import requests
import sys
@drjova
drjova / spacemacs-cheshe.md
Last active February 27, 2018 08:24 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC f t - open sidebar
  • SPC t f - show column indicator
  • SPC p f - find a file ala Ctrl + P
  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
@drjova
drjova / ImageMagick 6.9.7-8 Homebrew Formula.md
Last active January 10, 2018 16:53 — forked from yvbeek/ImageMagick 6.9.7-8 Homebrew Formula.md
Homebrew Formula for ImageMagick 6.9.7-8

Homebrew Formula patching old ImageMagick release 6.9.7-8

Install

brew install https://gist.github.com/Zyphrax/0c53e5ffa9d523ff4af37e2fab71c7e6/raw/bad11375742cadcbc3741df652e472bb0419c4dc/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.

@drjova
drjova / resizer.txt
Last active May 13, 2021 16:12 — forked from benvium/resizer.txt
Reskize images
#!/bin/bash -e
# Ensure we're running in location of script.
cd "`dirname $0`"
for f in *; do
if [[ $f == *@3x* ]];
then
echo "$f -> ${f//@3x/@2x}, ${f//@3x/}"
convert "$f" -resize 66.66666% "${f//@3x/@2x}"
alabaster==0.7.9
amqp==1.4.9
aniso8601==1.1.0
anyjson==0.3.3
apipkg==1.4
appnope==0.1.0
arrow==0.8.0
Babel==2.3.4
backports.shutil-get-terminal-size==1.0.0
billiard==3.3.0.23
``cds-test-wn-02``
alabaster==0.7.8
amqp==1.4.9
anyjson==0.3.3
apipkg==1.4
appnope==0.1.0
arrow==0.8.0
Babel==2.3.4
backports.shutil-get-terminal-size==1.0.0
billiard==3.3.0.23
binaryornot==0.4.0
@drjova
drjova / arch-linux-install
Created March 19, 2016 10:17 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@drjova
drjova / osx-for-hackers.sh
Created January 13, 2016 10:41 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'