Update portnsap and port distfiles server name:
cp /etc/portsnap.conf /etc/portsnap.conf.orig
sed -i "" 's|portsnap.FreeBSD.org|portsnap3.hshh.org|' /etc/portsnap.conf
Add next line into /etc/make.conf file:
Update portnsap and port distfiles server name:
cp /etc/portsnap.conf /etc/portsnap.conf.orig
sed -i "" 's|portsnap.FreeBSD.org|portsnap3.hshh.org|' /etc/portsnap.conf
Add next line into /etc/make.conf file:
| # add aliases to use git-fzf method | |
| alias git-fzf 'set arg1 = `echo \!:1* | awk '"'"'{ print $1 }'"'"'`; \\ | |
| bash -c "source ~/.config/bash/plugins/git-fzf.bash && __git_fzf_bash::$arg1" ; \\ | |
| ' |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| # ... | |
| config.vm.provider "virtualbox" do |vb| | |
| # ... | |
| vb.customize ["modifyvm", :id, "--uart2", "0x2F8", 3] |
| #!/bin/bash | |
| SECONDS=0 | |
| #Check if running as root and if not elevate | |
| amiroot=$(sudo -n uptime 2>&1| grep -c "load") | |
| if [ "$amiroot" -eq 0 ] | |
| then | |
| printf "Maid Service Require Root Access. Please Enter Your Password.\n" | |
| sudo -v | |
| printf "\n" |
| # Distributed under the OSI-approved BSD 3-Clause License. See accompanying | |
| # file Copyright.txt or https://cmake.org/licensing for details. | |
| #.rst: | |
| # FindSDL2 | |
| # -------- | |
| # | |
| # Locate SDL2 library | |
| # | |
| # This module defines |
| #include <windows.h> | |
| #include <iostream> | |
| #include <vector> | |
| struct ScreenArray { | |
| std::vector<RECT> Monitors; | |
| static BOOL CALLBACK MonitorEnumProc(HMONITOR monitor, HDC hdc, LPRECT rect, LPARAM data) { | |
| MONITORINFOEX mi = {0}; |
| package main | |
| import ( | |
| "fmt" | |
| "regexp" | |
| "strconv" | |
| "time" | |
| ) | |
| func main() { |
| #include <assert.h> | |
| #include <ole2.h> | |
| #include <iostream> | |
| #include <memory> | |
| #include <sstream> | |
| #include <vector> | |
| template <class T> | |
| void SafeRelease(T **ppT) { |
| package main | |
| import ( | |
| "math/rand" | |
| "path/filepath" | |
| "time" | |
| "github.com/go-ole/go-ole" | |
| "github.com/go-ole/go-ole/oleutil" | |
| "github.com/scjalliance/comshim" |
Start chrome browser with Profile 1 in a new tab.
$ open -a "Google Chrome" --args --profile-directory="Profile 1"
Start Brave browser with Default in a new tab.
$ /Applications/Brave\ Browser/Contents/MacOS/Brave\ Browser --profile-directory="Default"