Skip to content

Instantly share code, notes, and snippets.

View raidenz's full-sized avatar

raidenz raidenz

View GitHub Profile
@raidenz
raidenz / HomepageLayout.tsx
Created December 12, 2019 15:54
HomepageLayout with typescript
import * as React from "react";
import { Route, RouteProps } from "react-router";
interface Props {
component: React.ComponentType<RouteProps>;
}
export const HomepageLayout = ({ component: Component, ...rest }: Props) => {
return (
<Route {...rest} render={routeProps => <Component {...routeProps} />} />
);
@raidenz
raidenz / windowsBootableUsbFromMac
Last active April 12, 2020 06:14
create usb bootable windows from mac
diksutil list
# change number wit your usb
diskutil eraseDisk MS-DOS "{usbName}" MBR disk{number}
# open iso files
ls /Volumes
# try to use -Rp instead
cp -Rp /Volumes/{OsIsoName}/* /Volumes/{usbName}/
@raidenz
raidenz / aliases.sh
Created January 10, 2025 12:35
Git bash alias (MyZsh) sh
// C:\Program Files\Git\etc\profile.d\aliases.sh
# Some good standards, which are not used if the user
# creates his/her own .bashrc/.bash_profile
# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color=auto --show-control-chars'
alias ll='ls -l'
# Aliases