Skip to content

Instantly share code, notes, and snippets.

View mynetx's full-sized avatar
:octocat:

Joachim Rütter mynetx

:octocat:
View GitHub Profile
@damianwajer
damianwajer / wp-update-tested-up-to.sh
Last active June 2, 2022 20:50
[WordPress] Update "tested up to" value for WordPress plugin with SVN | https://www.damianwajer.com/blog/update-tested-up-to-wordpress-plugin-svn/
# Check out a working copy from a repository
svn co http://plugins.svn.wordpress.org/[plugin-slug]/
# Bring changes from the repository into the working copy (use the command below for existing repo)
svn up
# Update "Tested up to" value with a new version number (using Vim or change `vi` to your editor of choice, e.g. `nano`)
vi trunk/readme.txt
# Copy readme.txt to the tag with the newest version of the plugin
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active November 3, 2025 12:30
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@ryanlowdermilk
ryanlowdermilk / index.js
Created May 29, 2019 22:01
A simple example of an Alexa Music Skill
const Alexa = require('ask-sdk-core');
exports.handler = (event, context, callback) => {
console.log(`event: ${JSON.stringify(event)}`);
var jsonStr = null;
if (event.header !== undefined && event.header.name == "GetPlayableContent") {
jsonStr = `{
"header": {
"messageId": "00ef1e9a-140b-485c-bc2c-5b9556cee492",
"namespace": "Alexa.Media.Search",
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active October 24, 2025 11:14
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@LucaTNT
LucaTNT / Spotify-now-playing-on-TouchBar.scpt
Last active September 27, 2018 09:51
This script can be used in conjunction with Better Touch Tool to display the currently playing track in Spotify on the MacBook Pro TouchBar. More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar
-- This script can be used in conjunction with Better Touch Tool to display the currently playing track on the MacBook Pro TouchBar
-- More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar
if application "Spotify" is running then
tell application "Spotify"
if player state is playing then
return (get artist of current track) & " - " & (get name of current track)
else
return ""
end if
@ericelliott
ericelliott / blue-tape-api.js
Created July 11, 2015 20:03
blue-tape Promise API
test('Greet World', (assert) => new Promise((resolve) => {
assert.equal(hello('World'), 'Hello, World!');
setTimeout(() => {
// do some async stuff
resolve();
}, 10);
}));
import test from 'tape';
const before = test;
const after = test;
// beforeEach/afterEach rely on shared state.
// That's a big anti-pattern for testing.
// It's also silly to run something before and after
// ever test -- many of your tests won't need it.
@gerry
gerry / decrypt_dbvis.py
Last active December 15, 2024 21:15
A quick hack to extract and decrypt credentials from DbVisualizer config files.
#!/usr/bin/env python
# decrypt_dbvis.py ~ gerry@twitter.com
# DbVisualizer uses PBEWithMD5AndDES with a static key to store passwords.
# This is a quick hack to extract and decrypt credentials from DbVisualizer config files.
# Tested against DbVisualizer Free 9.0.9 and 9.1.6
"""
[2014-03-25 02:05:30][not-the-sea workspace]$ security/p/gerry/misc/decrypt_dbvis.py
[+] DbVisualizer Password Extractor and Decryptor (@gerryeisenhaur)
[+] Additional Usage Options:
[+] security/p/gerry/misc/decrypt_dbvis.py <config filename>
@prebenlm
prebenlm / .A how to display Irssi-hilights in OS X Notification Center.md
Last active October 26, 2025 18:47
Guide: how to make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier

Irssi in Mac OS X Notification Center

Mou icon

Overview

This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.

We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.

@jadeatucker
jadeatucker / HOWTODMG.md
Last active September 28, 2025 07:21
How to create a "DMG Installer" for Mac OS X

Creating a "DMG installer" for OS X

A DMG Installer is convenient way to provide end-users a simple way to install an application bundle. They are basically a folder with a shortcut to the Applications directory but they can be customized with icons, backgrounds, and layout properties. A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders providing compression, encryption, and read-only to the package.

##Creating the DMG file #Disk Utility