Skip to content

Instantly share code, notes, and snippets.

View danielkza's full-sized avatar

Daniel Miranda danielkza

  • Vonage
  • London, United Kingdom
View GitHub Profile
@danielkza
danielkza / install.inf
Created July 11, 2013 09:55
Aero Inverted Cursors inf files
; xFree cursors for Windows XP.
; Win 2000/XP Alphablended Cursor Scheme installation file.
[Version]
signature="$CHICAGO$"
[DefaultInstall]
CopyFiles = Scheme.Cur, Scheme.Txt
AddReg = Scheme.Reg
@danielkza
danielkza / 42_windows
Last active December 19, 2015 12:29
Files related to GRUB2 fedora troubles
#!/bin/sh
# 30_os-prober was also made non-executable
cat <<EOF
menuentry 'Windows Boot Manager' {
insmod part_gpt
search --no-floppy --set root --file /EFI/Microsoft/Boot/bootmgfw.efi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
'users' -> [ :url |
| userName |
userName := [ url second ] on: Error do: [ nil ].
].
s := CMSystem globalInstance.
u := s userManager findUser: 'danielkza2@gmail.com' ifAbsent: [
| uu |
uu := CMUser withLogin: 'danielkza' email: 'danielkza2@gmail.com' password: '123aew' firstName: 'daniel' lastName: 'miranda'.
s userManager addUser: uu.
].
t := CMTopic withName: 'testTopic' creator: u.
s children add: t.
Disconnected at Sun Apr 21 18:00:21 UTC 2013
Connected at Sun Apr 21 18:00:26 UTC 2013
Disconnected at Sun Apr 21 18:02:09 UTC 2013
Connected at Sun Apr 21 18:02:17 UTC 2013
Disconnected at Sun Apr 21 18:03:21 UTC 2013
Connected at Sun Apr 21 18:03:27 UTC 2013
Disconnected at Sun Apr 21 18:05:51 UTC 2013
Connected at Sun Apr 21 18:06:02 UTC 2013
Disconnected at Sun Apr 21 18:06:04 UTC 2013
Connected at Sun Apr 21 18:06:08 UTC 2013
#!/bin/bash
SSH=$(which ssh)
hosts=()
params=()
sep_found=0
for arg in "$@"
do
import os
import shutil
rootDir = 'G:/testasd/'
print('[',rootDir,']')
for (dirPath, dirNames, fileNames) in os.walk(rootDir):
for file in fileNames:
root, ext = os.path.splitext(file)
if ext not in ('.mp3', '.flac', '.m4a'):
@danielkza
danielkza / MemTestG80_AutoOC.ps1
Last active December 11, 2015 14:58
Automatic Memory Clock tester for NVIDIA cards
<#
.SYNOPSIS
Automatic NVIDIA memory clock tester
.DESCRIPTION
Using MemTestG80 and MSI Afterburner, this program automatically tests
memory clocks to find the highest stable clock possible.
MSI Afterburner must be running, and a driver supporting CUDA must be
installed (any recent driver should be fine).
@danielkza
danielkza / rsmith_save.c
Created December 24, 2012 18:49
Rocksmith save game transfer tool
// Author: pcsmith
// Modifications: danielkza (danielkza2@gmail.com)
// License: GPLv3 https://www.gnu.org/licenses/gpl.html
// More info: http://rsmods.oakey-dev.eu/index.php?title=Savegame_Transfer
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char buf[10];
if(fgets(buf, sizeof(buf), stdin) != NULL)
// blah