Skip to content

Instantly share code, notes, and snippets.

View kuntau's full-sized avatar
💭
I may be slow to respond.

Nizamuddin Sulieman kuntau

💭
I may be slow to respond.
View GitHub Profile
@kuntau
kuntau / unattended installation.md
Created May 14, 2014 20:12
Setup unattended installation for moving `USERS` and `AppData` folder on Windows 8

When creating a clean install, using the combination of an SSD system drive and a conventional disk drive, as a data drive, there is a way to "move" the Users folder (normally, C:\Users) and the hidden ProgramData folder (normally C:\ProgramData) to the conventional disk, or data drive, using an answer file, or unattend.xml, for an unattended installation, as mentioned above.

For an individual doing a single, one-off installation, trying to figure out how to create an answer file for a completely unattended installation, just to accomplish this one small task, is way, way too much trouble. It's also not necessary.

It is possible, during the course of a conventional, interactive installation from an installation disc or USB thumbdrive, to enter what is called, "Audit Mode", before the Computer is named or a Username created, and accomplish the necessary re-assignment.

1.) Do a conventional installation. If you are using an SSD, at the point in the installation process where you are asked where you want to

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FolderLocations>
<ProfilesDirectory>d:\Users</ProfilesDirectory>
<ProgramData>d:\ProgramData</ProgramData>
</FolderLocations>
</component>
</settings>
@kuntau
kuntau / .vintageousrc
Created March 3, 2014 14:02
My vintageous RC file
:map <space> :
@kuntau
kuntau / mtgox.php
Last active August 29, 2015 13:56
Mt Gox Souce Code
<?php
//source http://pastebin.com/W8B3CGiN
namespace Money;
class Bitcoin {
#const BITCOIN_NODE = '173.224.125.222'; // w001.mo.us temporary
const BITCOIN_NODE = '50.97.137.37';
static private $pending = array();
/*
On Tue, Sep 30, 2008 at 6:52 AM, Austin English <austinenglish at gmail.com> wrote:
> On Mon, Sep 29, 2008 at 3:39 PM, Mark Wagner <carnildo at gmail.com> wrote:
>> What's the best way for an application to detect that it's running under Wine?
>>
>> As part of the installation process, under Windows our program does a
>> full-disk search of all local hard drives, but ignoring network drives
>> and removable media. Under Wine, this doesn't work too well, as
>> there's not a one-to-one mapping between disks and drive letters, and
>> there's usually at least one way to access the entire *nix filesystem.
@kuntau
kuntau / set_permission.sh
Created October 14, 2013 08:50
How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?
# The other answers are correct, in that chmod -R 755 will set this as permissions to all files and folders in the tree. But why on earth would you want to? It might make sense for the directories, but why set the execute bit on all the files?
# I suspect what you really want to do is set the directories to 755 and either leave the files alone or set them to 644. For this, you can use the find command. For example:
# To change all the directories to 755 (-rwxr-xr-x):
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
# To change all the files to 644 (-rw-r--r--):
@kuntau
kuntau / 0_reuse_code.js
Created October 12, 2013 00:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// Scraping Made Easy with jQuery and SelectorGadget
// (http://blog.dtrejo.com/scraping-made-easy-with-jquery-and-selectorga)
// by David Trejo
//
// Install node.js and npm:
// http://joyeur.com/2010/12/10/installing-node-and-npm/
// Then run
// npm install jsdom jquery http-agent
// node numresults.js
//
app = angular.module("MyApp")
app.controller 'TodoCtrl', ($scope) ->
$scope.todos = [{text: 'learn angular', done: true},
{text: 'learn coffeescript', done: false}]
$scope.addTodo = ->
@kuntau
kuntau / Default (Linux).sublime-keymap
Created August 11, 2013 01:41
My sublime text 3 keybinding
[
{
"keys": ["j", "j"], "command": "set_action",
"args": {"action": "vi_esc"},
"context":
[
{"key": "vi_mode_insert"},
{"key": "vi_is_buffer"}
]
},