Skip to content

Instantly share code, notes, and snippets.

View SonoSooS's full-sized avatar

Sono SonoSooS

  • Hungary
  • 18:25 (UTC +02:00)
View GitHub Profile
@SonoSooS
SonoSooS / WifiResetThreedee.c
Created July 8, 2016 23:13
Resets the WiFi on the new3DS
#include <3ds.h>
int main()
{
Handle nwmEXT_handle;
aptMainLoop();
if(R_FAILED(srvGetServiceHandle(&nwmEXT_handle, "nwm::EXT"))) return 1;
@SonoSooS
SonoSooS / b2bin.c
Last active July 3, 2016 00:32
Converts SmileBASIC .DAT files to real little-endian binary files
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef unsigned long long u64;
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
int main(int argc, char** argv)
@SonoSooS
SonoSooS / TRAMEXPLORER
Last active July 1, 2016 21:45
RAM explorer and dumper for SmileBASIC
XSCREEN 2
BGSCREEN 0,134217728,16
A=0
C=1
U=0
K=0
S=0
SM=0
EM=0
@MAINLOOP
@SonoSooS
SonoSooS / aaasoundcloud_auser.lua
Last active May 11, 2018 00:08
SoundCloud user track player plugin for VLC
--[[--
SoundCloud user track player plugin
Copyright (C) 2016-2018 Sono (https://github.com/MarcuzD)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
@SonoSooS
SonoSooS / lcm.c
Created May 11, 2016 19:02
Very plain LargestCommonMultiple calculator
#include <stdio.h>
typedef unsigned long long u64;
u64 lcm(u64 f, u64 s)
{
u64 n1, n2;
if(f > s) { n1 = f; n2 = s; }
else { n1 = s; n2 = f; }
@SonoSooS
SonoSooS / sc_xspf.php
Last active May 11, 2016 16:43
SoundCloud XSPF emitter PHP script
<?
/*
SoundCloud XSPF playlist generator / track redirector
Made by MarcusD
Usage examples:
sc_xspf.php?username/sets/playlistname
sc_xspf.php?username/trackname
sc_xspf.php?https://soundcloud.com/username/sets/playlistname
sc_xspf.php?https://soundcloud.com/username/trackname
@SonoSooS
SonoSooS / gbanotif.sh
Created January 28, 2016 15:12
GBATemp notifier written in bash
#!/bin/bash
# ===================================
# GBATemp notifier bash script
#
# created by MarcusD
# Copyright $(date +"%Y")
#
# :P
# ===================================
@SonoSooS
SonoSooS / update-java.sh
Last active January 1, 2016 21:06
Makes JAVA_HOME as the new Java installation folder
cd $JAVA_HOME; for feil in bin/*; do if [ -f $feil -a -x $feil ]; then sudo update-alternatives --install /usr/$feil `basename $feil` $JAVA_HOME/$feil 8001; fi; done;
@SonoSooS
SonoSooS / resset.sh
Last active April 17, 2016 17:34
Simple resolution setter for Linux
LEL=`cvt $2 $3 $4 | grep "Modeline" | cut -b10- | tr -s " " | sed 's/\([0-9]*x[0-9]*\)_[^\"]*/\1/g'`;NAEM=`echo $LEL | cut -d'"' -f2`;echo $LEL | xargs xrandr --newmode;xrandr --addmode $1 $NAEM;xrandr --output $1 --mode $NAEM
@SonoSooS
SonoSooS / aaasoundcloud_single.lua
Last active August 1, 2018 06:11
SoundCloud music playlist plugin for VLC
--[[--
aaasoundcloud_single.lua - SonundCloud track parser
Copyright (C) 2016-2018 Sono (https://github.com/MarcuzD)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but