brew install ffmpeg
brew install gifsicle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useRef } from "react"; | |
import { cn } from "@/lib/utils"; | |
import CodeEditor from "@uiw/react-textarea-code-editor"; | |
export interface CodeBlockProps | |
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> { | |
language?: string; | |
darkMode?: boolean; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show hidden files | |
defaults write com.apple.finder AppleShowAllFiles -boolean true | |
# Show status bar in Finder | |
defaults write com.apple.finder ShowStatusBar -bool true | |
# Show Library folder | |
chflags nohidden ~/Library | |
# Show file extensions |
Source code can be download from:
https://www.monetdb.org/downloads/sources/Latest/
Install required packages:
brew install pkg-config pcre openssl libtool gettext libiconv autoconf automake libxml2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SIDConverter { | |
public static String convertSidToStringSid(byte[] sid) { | |
int offset, size; | |
// sid[0] is the Revision, we allow only version 1, because it's the | |
// only that exists right now. | |
if (sid[0] != 1) | |
throw new IllegalArgumentException("SID revision must be 1"); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.glyphicon-refresh-animate { | |
-animation: spin .7s infinite linear; | |
-webkit-animation: spin2 .7s infinite linear; | |
} | |
@-webkit-keyframes spin2 { | |
from { -webkit-transform: rotate(0deg);} | |
to { -webkit-transform: rotate(360deg);} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One option is to create ~/Library/KeyBindings/ and save a property list like this as ~/Library/KeyBindings/DefaultKeyBinding.dict: | |
{ | |
"\UF729" = moveToBeginningOfLine:; | |
"\UF72B" = moveToEndOfLine:; | |
"$\UF729" = moveToBeginningOfLineAndModifySelection:; | |
"$\UF72B" = moveToEndOfLineAndModifySelection:; | |
} | |
Quit and reopen applications to apply the changes. Note that DefaultKeyBinding.dict is not supported by some applications like Xcode or Firefox. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="PaperAngularExample"> | |
<head> | |
<script type="text/javascript" src="bower_components/angular/angular.js"></script> | |
<script type="text/javascript" src="bower_components/paper/dist/paper-full.js"></script> | |
<script> | |
var app = angular.module('PaperAngularExample', []); | |
app.directive('draw', function() { | |
return { |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name