Skip to content

Instantly share code, notes, and snippets.

View thwaller's full-sized avatar
🏠
Working from space

thwaller thwaller

🏠
Working from space
View GitHub Profile
@thwaller
thwaller / trakt-backup.php
Last active September 24, 2020 17:34 — forked from darekkay/trakt-backup.php
Trakt.tv backup script
<?php
/*
Original Source Credit:
Backup script for trakt.tv (API v2).
Live demo: http://eclectide.com/blog/2014/08/12/trakt-tv-backup/
*/
// create a Trakt app to get a client API key: https://trakt.docs.apiary.io/#introduction/api-url
$apikey = "CLIENT_API_KEY";
@thwaller
thwaller / lookup_eac_log.html
Created December 24, 2018 10:24 — forked from kolen/lookup_eac_log.html
Lookup musicbrainz and freedb by EAC log
<!--
Lookup musicbrainz and freedb by EAC log.
MIT License
Copyright (c) 2018 Konstantin Mochalov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Verifying my Blockstack ID is secured with the address 1NQrsy5fofUJ6Mg57Nh5Ktt3uqixkQ7Q31 https://explorer.blockstack.org/address/1NQrsy5fofUJ6Mg57Nh5Ktt3uqixkQ7Q31
@thwaller
thwaller / trelloinstall.sh
Last active December 28, 2019 23:16 — forked from iPublicis/trelloinstall.sh
Install Trello Linux Client
#!/bin/bash
# Your system should be 64 bits and check if the last version at https://github.com/danielchatfield/trello-desktop/ is 0.19
# If the current version is not 0.19 change the file name below accordingly
# Due to Chrome errors within the app, a corrected version is being used.
wget https://github.com/Racle/trello-desktop/releases/download/v0.2.0/Trello-linux-0.2.0.zip -O trello.zip
sudo mkdir /opt/trello
sudo unzip trello.zip -d /opt/trello/
sudo ln -sf /opt/trello/Trello /usr/bin/trello
@thwaller
thwaller / linux-resources.txt
Last active September 30, 2020 02:16
List of Linux resources
1. Flatpak - https://flathub.org/home & https://flatpak.org/
2. Snap - https://snapcraft.io/store
3. Python - https://pypi.org/
4. Ruby Gems - https://rubygems.org/
5. Package Search - https://pkgs.org/
6. Launchpad - https://launchpad.net/
7. npm - https://www.npmjs.com/
8. pip - https://pip.pypa.io/en/stable/
@thwaller
thwaller / jdk-squashfs-ramdisk-ubuntu.md
Created November 3, 2020 22:00 — forked from lambdaverse/jdk-squashfs-ramdisk-ubuntu.md
JDK on ram disk with Ubuntu 14.04
  1. Create RAM disk
  2. Create JAVA squashfs
  3. Mount Java to RAM disk
  4. Set Java to default

make RAMDISK using tmpfs:

$shell > sudo mkdir /media/ramdisk
$shell > sudo mount -t tmpfs tmpfs /media/ramdisk
-- phpMyAdmin SQL Dump
-- version 3.3.8.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 28, 2012 at 04:56 PM
-- Server version: 5.0.91
-- PHP Version: 5.3.6-pl0-gentoo
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
#!/usr/bin/python3
import os
import sys
import time
import dbus
import dbus.service
import dbus.mainloop.glib
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
from gi.repository import GObject as gobject
@thwaller
thwaller / itunes.countries.js
Created January 1, 2021 13:13 — forked from daFish/itunes.countries.js
List of Apple iTunes Store Country codes in Javascript.
var countries = {
ae: 'United Arab Emirates',
ag: 'Antigua and Barbuda',
ai: 'Anguilla',
al: 'Albania',
am: 'Armenia',
ao: 'Angola',
ar: 'Argentina',
at: 'Austria',
au: 'Australia',
@thwaller
thwaller / crlf.py
Created February 1, 2021 15:26 — forked from jonlabelle/crlf.py
Replace CRLF (windows) line endings with LF (unix) line endings in files.
#!/usr/bin/env python
"""Replace line breaks, from one format to another."""
from __future__ import print_function
import argparse
import glob
import os
import sys