Skip to content

Instantly share code, notes, and snippets.

View crossdjinn's full-sized avatar

CrossDJinn crossdjinn

View GitHub Profile
#include "TrinketHidCombo.h"
#define PIN_ENCODER_A 4
#define PIN_ENCODER_B 5
#define TRINKET_PINx PINB
static uint8_t enc_prev_pos = 0;
static uint8_t enc_flags = 0;
void setup()
gnome-desktop-item-edit --create-new ~/Desktop
@crossdjinn
crossdjinn / random_pulse_led_effect.ino
Last active December 22, 2018 23:14
C++, Arduino, LED pulse effect everytime different one
int ledPin = 11;
float sinVal;
int ledVal;
void setup(){
pinMode(ledPin, OUTPUT);
}
void loop(){
for(int x=0; x<180; x++) {
@crossdjinn
crossdjinn / flac_to_wav.sh
Last active December 22, 2018 23:15
Bash, ffmpeg convert any all multimedia in a file into another one/two whatever
for file in *.flac
do
ffmpeg -i "$file" -f wav "$file".wav
done
@crossdjinn
crossdjinn / mac os x finder -> terminal
Created December 3, 2018 12:51
open terminal here in best way ever
// https://github.com/jbtule/cdto#cd-to
drag and drop CMD and ALT file or folder into launcher to open terminal HERE xD awesome <3
// https://lame.buanzo.org/ffmpeg-mac-2.2.2.zip
/Library/Application Support/audacity/libs/libavformat.55.dylib
// <3
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'
sudo apt-get install input-utils mtdev-tools
// list of omg all
sudo lsinput
// test out
sudo mtdev-test /dev/input/event"xx"
@crossdjinn
crossdjinn / install gnome 3
Created November 24, 2018 22:09
gmone 3 linux ubuntu studio 16.04
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install ubuntu-gnome-desktop
@crossdjinn
crossdjinn / linux, bash, mouse, sensitive
Last active November 24, 2018 06:29
how to set up the finnest level of Apple Magic Mouse <3 on Linux
// https://askubuntu.com/questions/205676/how-to-change-mouse-speed-sensitivity/208230#208230
// list of devices and their ID = xx
xinput --list --short
// list of properities look for "yyy"
// Device Accel Constant Deceleration (269): 1.000000
xinput --list-props "xx"
// set finnest "z.z" level ever
// WARN !!! reset after restarty, setup as startup script, viz down