Skip to content

Instantly share code, notes, and snippets.

View sebllll's full-sized avatar
📡
beep

sebl sebllll

📡
beep
View GitHub Profile
@markasoftware
markasoftware / enterprise_token.rb
Last active June 26, 2024 08:01
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@floscr
floscr / create-branch-folder.sh
Last active October 13, 2021 00:02
Create folder from git branches
#!/bin/bash
# Git branches to folders
function branch_folders {
# Check if folder is a git repository
if [[ ! -d ".git" ]]; then
echo -e "\n\tThis is not a git repository!\n"
exit
fi
@kaihansen79
kaihansen79 / gist:6437340
Last active May 13, 2016 11:09
People tracker & tagger with C++ OpenCV
#include <opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "highgui.h"
#include <stdlib.h>
#include <stdio.h>
#include "opencv2\video\background_segm.hpp"
#include <Windows.h>
anonymous
anonymous / gist:5884203
Created June 28, 2013 12:02
gpu->cpu copy with Directx9 in vvvv plugin
#region usings
using System;
using System.ComponentModel.Composition;
using System.Runtime.InteropServices;
using SlimDX;
using SlimDX.Direct3D9;
using VVVV.Core.Logging;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
@eddwo
eddwo / gist:5423102
Created April 19, 2013 20:44
Comment spam generator based on the template discovered by Scott Hanselman https://gist.github.com/shanselman/5422230
abstract class Comment
{
public abstract void Generate(StringBuilder builder);
public string Generate()
{
StringBuilder builder = new StringBuilder();
this.Generate(builder);
return builder.ToString();
}
@jonocole
jonocole / Spotify Silencer.applescript
Created March 27, 2012 15:44
Silence spotify ads
-- This isn't pretty but it works.
tell application "Spotify"
set old_volume to sound volume
repeat
if player state is playing then set current_album to album of current track
if player state is playing and (current_album starts with "http://" or current_album starts with "https://" or current_album starts with "spotify:") then
set sound volume to 0
play
else

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@elliottkember
elliottkember / spotify.applescript
Created February 22, 2012 12:45
Spotify Applescript
property baseURL : "http://statusboard.dev/song?"
if application "Spotify" is running then
tell application "Spotify"
set theTrack to name of the current track
set theArtist to artist of the current track
set theAlbum to album of the current track
set theurl to spotify url of the current track
try
do shell script "/usr/local/bin/wget --delete-after \"" & baseURL & "&t=" & theTrack & "&a=" & theArtist & "&al=" & theAlbum & "\""