<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-20000971</id><updated>2025-07-06T02:00:43.496-07:00</updated><category term="notakaki"/><category term="mac"/><category term="unix"/><category term="apple"/><category term="linux"/><category term="solaris"/><category term="ssh"/><category term="misc"/><category term="iphone"/><category term="redhat"/><category term="shell"/><category term="san"/><category term="HTML"/><category term="apache"/><category term="code"/><category term="hpux"/><category term="mysql"/><category term="network"/><category term="nfs"/><category term="ubuntu"/><category term="windows"/><category term="zones"/><category term="Azure"/><category term="console"/><category term="script"/><category term="xen"/><category term="zfs"/><category term="Sun"/><category term="esx"/><category term="lun"/><category term="modem"/><category term="ms.excel"/><category term="osx"/><category term="proliant"/><category term="suse"/><category term="virtualbox"/><category term="vxvm"/><category term="wordpress"/><title type='text'>nota kaki | foot note</title><subtitle type='html'>just make it work.. security aside</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codept.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default?alt=atom&amp;redirect=false'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default?alt=atom&amp;start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>203</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-20000971.post-7718526146706335154</id><published>2024-10-27T19:34:00.002-07:00</published><updated>2024-10-28T06:44:54.212-07:00</updated><title type='text'>Terraform incompatible provider version</title><content type='html'>&lt;p&gt;&amp;nbsp;Example use case with template:&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;│ Error: Incompatible provider version&lt;br /&gt;│&amp;nbsp;&lt;br /&gt;│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.&lt;br /&gt;│&amp;nbsp;&lt;br /&gt;│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider&lt;br /&gt;│ may have different platforms supported.&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Solution&lt;/h2&gt;&lt;p&gt;For this use case, download the source code &lt;a href=&quot;https://github.com/hashicorp/terraform-provider-template/releases/tag/v2.2.0&quot;&gt;https://github.com/hashicorp/terraform-provider-template/releases/tag/v2.2.0&lt;/a&gt;&amp;nbsp;and build it.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;% make&lt;br /&gt;==&amp;gt; Checking that code complies with gofmt requirements...&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;go install&lt;br /&gt;go: downloading github.com/hashicorp/terraform v0.12.0-alpha4.0.20190424121927-9327eedb0417&lt;br /&gt;go: downloading github.com/hashicorp/hcl2 v0.0.0-20190416162332-2c5a4b7d729a&lt;br /&gt;go: downloading github.com/zclconf/go-cty v0.0.0-20190320224746-fd76348b9329&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;go: downloading github.com/agext/levenshtein v1.2.2&lt;br /&gt;go: downloading github.com/apparentlymart/go-textseg v1.0.0&lt;br /&gt;go: downloading github.com/mitchellh/go-wordwrap v1.0.0&lt;br /&gt;go: downloading golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2&lt;br /&gt;go: downloading github.com/hashicorp/go-hclog v0.0.0-20181001195459-61d530d6c27f&lt;br /&gt;go: downloading github.com/hashicorp/go-plugin v0.0.0-20190322172744-52e1c4730856&lt;br /&gt;go: downloading google.golang.org/grpc v1.18.0&lt;br /&gt;go: downloading github.com/mitchellh/go-homedir v1.0.0&lt;br /&gt;go: downloading github.com/hashicorp/go-multierror v1.0.0&lt;br /&gt;go: downloading github.com/mitchellh/copystructure v1.0.0&lt;br /&gt;go: downloading github.com/mitchellh/mapstructure v1.1.2&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;go: downloading github.com/apparentlymart/go-cidr v1.0.0&lt;br /&gt;go: downloading github.com/hashicorp/go-uuid v1.0.1&lt;br /&gt;go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2&lt;br /&gt;go: downloading golang.org/x/net v0.0.0-20190311183353-d8887717615a&lt;br /&gt;go: downloading github.com/golang/protobuf v1.3.0&lt;br /&gt;go: downloading github.com/hashicorp/errwrap v1.0.0&lt;br /&gt;go: downloading github.com/hashicorp/go-getter v1.1.0&lt;br /&gt;go: downloading github.com/hashicorp/go-version v1.1.0&lt;br /&gt;go: downloading github.com/mitchellh/cli v1.0.0&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;go: downloading github.com/vmihailenco/msgpack v4.0.1+incompatible&lt;br /&gt;go: downloading github.com/hashicorp/hcl v1.0.0&lt;br /&gt;go: downloading github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590&lt;br /&gt;go: downloading github.com/mitchellh/reflectwalk v1.0.0&lt;br /&gt;go: downloading github.com/blang/semver v3.5.1+incompatible&lt;br /&gt;go: downloading github.com/mitchellh/hashstructure v1.0.0&lt;br /&gt;go: downloading github.com/hashicorp/go-cleanhttp v0.5.0&lt;br /&gt;go: downloading github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb&lt;br /&gt;go: downloading github.com/mitchellh/go-testing-interface v1.0.0&lt;br /&gt;go: downloading github.com/oklog/run v1.0.0&lt;br /&gt;go: downloading github.com/aws/aws-sdk-go v1.16.36&lt;br /&gt;go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d&lt;br /&gt;go: downloading github.com/hashicorp/go-safetemp v1.0.0&lt;br /&gt;go: downloading github.com/ulikunitz/xz v0.5.5&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;go: downloading github.com/armon/go-radix v1.0.0&lt;br /&gt;go: downloading github.com/bgentry/speakeasy v0.1.0&lt;br /&gt;go: downloading github.com/fatih/color v1.7.0&lt;br /&gt;go: downloading github.com/mattn/go-isatty v0.0.5&lt;br /&gt;go: downloading github.com/posener/complete v1.2.1&lt;br /&gt;go: downloading github.com/spf13/afero v1.2.1&lt;br /&gt;go: downloading github.com/mattn/go-colorable v0.1.1&lt;/div&gt;&lt;div&gt;go: downloading github.com/google/go-cmp v0.2.0&lt;br /&gt;go: downloading google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922&lt;br /&gt;go: downloading github.com/jmespath/go-jmespath v0.0.0-2018&lt;br /&gt;% go build -o terraform-provider-template&lt;br /&gt;% mkdir -p ~/.terraform.d/plugins/hashicorp.com/template/2.2.0/darwin_amd64&lt;br /&gt;% mv terraform-provider-template ~/.terraform.d/plugins/hashicorp.com/template/2.2.0/darwin_arm64&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/7718526146706335154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2024/10/terraform-incompatible-provider-version.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7718526146706335154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7718526146706335154'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2024/10/terraform-incompatible-provider-version.html' title='Terraform incompatible provider version'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-1074919982563135048</id><published>2020-02-23T16:42:00.001-08:00</published><updated>2020-02-23T16:42:18.950-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><title type='text'>The upload size in bytes # - 512 bytes for the VHD footer (# in this case) must be a multiple of MiB.</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ wc -c os_disk.vhdx&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;5272240128 os_disk.vhdx&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The vhd file size needs to be a number divisible by 1024.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;5272240128 / 1025 / 1024 / 1024 = 4.91015625&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4.91015625 is not divisible by 1024. We are going to round the number to 5.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;5 * 1024 * 1024 * 1024 = 5368709120&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And add 512 bytes for the VHD footer.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;5368709120 + 512 = 5368709632&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Reference: &lt;a href=&quot;https://www.reddit.com/r/AZURE/comments/elbz91/issues_creating_a_managed_disk_for_vhd_upload/&quot;&gt;Reddit&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/1074919982563135048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2020/02/the-upload-size-in-bytes-512-bytes-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/1074919982563135048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/1074919982563135048'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2020/02/the-upload-size-in-bytes-512-bytes-for.html' title='The upload size in bytes # - 512 bytes for the VHD footer (# in this case) must be a multiple of MiB.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-2233428444980777160</id><published>2019-12-21T20:25:00.002-08:00</published><updated>2019-12-21T20:36:48.290-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><title type='text'>Azure Terraform Role Definition</title><content type='html'>For security purpose, we tend to create service principal that can performs Terraform operations only within a specific resource group without able modify resource outside the resource group within the same subscription.&lt;br /&gt;
&lt;br /&gt;
Reality is we still need to allow the service principal to run few actions within the scope of the subscription.&lt;br /&gt;
&lt;br /&gt;
Therefore here is the role definition with actions required that Terraform operations need to execute successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;Name&quot;: &quot;Terraform&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;Description&quot;: &quot;Role definition has actions required that Terraform operations need&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;Actions&quot;: [&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;*/read&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Microsoft.Sql/register/action&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Microsoft.CognitiveServices/register/action&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;microsoft.insights/register/action&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ],&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;AssignableScopes&quot;: [&quot;/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&quot;]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;With this as json content, we may run the following command to create the role and assign it to the subscription.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;az role definition create --role-definition terraform-role-definition.json&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Reference&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/cli/azure/role/definition?view=azure-cli-latest#az-role-definition-create&quot;&gt;az role definition create&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/cloud-shell/overview&quot;&gt;Using Azure Cloud Shell&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/2233428444980777160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2019/12/azure-terraform-role-definition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2233428444980777160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2233428444980777160'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2019/12/azure-terraform-role-definition.html' title='Azure Terraform Role Definition'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-6091158066094181324</id><published>2019-12-21T17:21:00.000-08:00</published><updated>2020-05-22T19:13:01.413-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Schedule Dark Mode</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA4JdAD8CA9E7pkLYWZ2sC8oZQic-gSj4cedRTehTfoDYyamNnXKytunB1hFT23eJ8BA_MQpSpkpwsRt-rsScUGhuE8kBOFldHly3yi-wkFcOs_jWUldLyhVdiDw8y7V4nz9H2/s1600/Capture.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;192&quot; data-original-width=&quot;387&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA4JdAD8CA9E7pkLYWZ2sC8oZQic-gSj4cedRTehTfoDYyamNnXKytunB1hFT23eJ8BA_MQpSpkpwsRt-rsScUGhuE8kBOFldHly3yi-wkFcOs_jWUldLyhVdiDw8y7V4nz9H2/s320/Capture.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To schedule dark mode at 7 PM:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;schtasks /CREATE /SC DAILY /TN &quot;Enable Dark Mode&quot; /TR &quot;C:\Windows\System32\reg.exe add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 0 /f&quot; /ST 19:00&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
To schedule light mode at 7 AM:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;schtasks /CREATE /SC DAILY /TN &quot;Disable Dark Mode&quot; /TR &quot;C:\Windows\System32\reg.exe add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppsUseLightTheme /t REG_DWORD /d 1 /f&quot; /ST 7:00&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Execute these commands in Command Prompt or PowerShell. There are additional steps you need to do to ensure it is enabled even if you turn on your laptop after the scheduled time.&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Launch &lt;b&gt;Task Scheduler&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Open the &lt;b&gt;Properties &lt;/b&gt;dialog of the tasks we created.&lt;/li&gt;
&lt;li&gt;Go to Settings and check the box &quot;&lt;b&gt;Run task as soon as possible after a scheduled start is missed.&lt;/b&gt;&quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://www.makeuseof.com/tag/auto-toggle-dark-mode-windows-10/&quot;&gt;How to Auto-Toggle Windows 10 Dark Mode at Night&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/windows/win32/taskschd/schtasks#creating-a-task&quot;&gt;Schtasks.exe /Create&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/6091158066094181324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2019/12/schedule-dark-mode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6091158066094181324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6091158066094181324'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2019/12/schedule-dark-mode.html' title='Schedule Dark Mode'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA4JdAD8CA9E7pkLYWZ2sC8oZQic-gSj4cedRTehTfoDYyamNnXKytunB1hFT23eJ8BA_MQpSpkpwsRt-rsScUGhuE8kBOFldHly3yi-wkFcOs_jWUldLyhVdiDw8y7V4nz9H2/s72-c/Capture.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-3855510545106767632</id><published>2019-12-13T00:31:00.002-08:00</published><updated>2019-12-13T00:31:42.998-08:00</updated><title type='text'>Generate self-signed certificate</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;openssl genrsa -out www.example.com.key 2048&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;openssl req -new -x509 -key www.example.com.key -out www.example.com.cert -days 3650 -subj /CN=www.example.com&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/3855510545106767632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2019/12/generate-self-signed-certificate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/3855510545106767632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/3855510545106767632'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2019/12/generate-self-signed-certificate.html' title='Generate self-signed certificate'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-7067607613762925747</id><published>2017-06-27T06:53:00.003-07:00</published><updated>2017-06-27T07:03:16.955-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>apt-add-repository: invalid HTTP proxy, unsupported URI</title><content type='html'>Had this error on a Ubuntu which runs behind a proxy. Your &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$http_proxy&lt;/span&gt; environment variable must contain&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&quot;&lt;b&gt;http://&lt;/b&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;root@ubuntu:~# echo $http_proxy&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;http://proxy.company.net:8080&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/7067607613762925747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2017/06/apt-add-repository-invalid-http-proxy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7067607613762925747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7067607613762925747'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2017/06/apt-add-repository-invalid-http-proxy.html' title='apt-add-repository: invalid HTTP proxy, unsupported URI'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Singapore</georss:featurename><georss:point>1.352083 103.81983600000001</georss:point><georss:box>0.8441055 103.174389 1.8600605 104.46528300000001</georss:box></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-6197456586222645724</id><published>2014-12-20T21:54:00.000-08:00</published><updated>2014-12-20T21:54:39.497-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>handy script to quickly backup a file</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# backup a file (somefile to somefile.yyyy-mm-dd.tar.gz)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;FILE=&quot;$@&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#debug&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;echo $FILE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;if [ -f $(which tar) ]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tar zcPf &quot;${FILE}&quot;.$(date +%s).tar.gz &quot;${FILE}&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;sorry, do you have &#39;tar&#39; installed?&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;fi&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/6197456586222645724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/12/binbash-backup-file-somefile-to-somefile.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6197456586222645724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6197456586222645724'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/12/binbash-backup-file-somefile-to-somefile.html' title='handy script to quickly backup a file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-5737795998120357951</id><published>2014-10-20T23:15:00.003-07:00</published><updated>2014-10-21T05:11:13.169-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>find files that contain string</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# grep -Hirn &quot;mystring&quot; /path/to/dir&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;find . -print0 | xargs -0 -n1 -P8 grep -Hirn&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;thanks to sifu enshu&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/5737795998120357951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/10/find-files-that-contain-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/5737795998120357951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/5737795998120357951'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/10/find-files-that-contain-string.html' title='find files that contain string'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-6728470734555017675</id><published>2014-10-19T02:27:00.000-07:00</published><updated>2014-10-19T02:28:43.593-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>error:  Diskfilter writes are not supported</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# cp -p /etc/grub.d/10_linux /etc/grub.d/10_linux.`date +%Y%m%d.%H%M`&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#&amp;nbsp;sed -i &#39;s/quick_boot=&quot;1&quot;/quick_boot=&quot;0&quot;/&#39; /etc/grub.d/10_linux&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# update-grub&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# reboot&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/6728470734555017675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/10/error-diskfilter-writes-are-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6728470734555017675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6728470734555017675'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/10/error-diskfilter-writes-are-not.html' title='error:  Diskfilter writes are not supported'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-7806343634623827643</id><published>2014-10-19T02:01:00.004-07:00</published><updated>2014-10-19T02:29:01.978-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>share internet connection in linux via terminal</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;On access point side&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;disable firewall&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;enable packet forwarding&lt;br /&gt;# echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;set iptables rule for port forwarding&lt;br /&gt;# iptables -t nat -A POSTROUTING -o &lt;internet_facing_interface&gt; -j MASQUERADE&lt;/internet_facing_interface&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;on client side:&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;configure network interface so you can reach the access point&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;set the access point as default gateway&lt;br /&gt;# route add default gw &lt;access_point&gt;&lt;/access_point&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;set dns resolution&lt;br /&gt;# echo&amp;nbsp;nameserver 8.8.8.8 &amp;gt;&amp;gt; /etc/resolv.conf&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/7806343634623827643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/10/share-internet-connection-in-linux-via.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7806343634623827643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7806343634623827643'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/10/share-internet-connection-in-linux-via.html' title='share internet connection in linux via terminal'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-7833000582314978131</id><published>2014-05-07T13:23:00.002-07:00</published><updated>2014-05-07T13:23:25.615-07:00</updated><title type='text'></title><content type='html'>Converting the numbers to decimal makes it easier to see which can be used:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# egrep &quot;^ .*|System RAM&quot; /proc/iomem | sed -e &#39;s/ : / /g&#39; -e &#39;s/-/ /g&#39; | awk &#39;{;printf(&quot;%d bytes to %d bytes (%d M to %d M) - %s %s\n&quot;, strtonum(&quot;0x&quot;$1), strtonum(&quot;0x&quot;$2), strtonum(&quot;0x&quot;$1)/1024/1024, strtonum(&quot;0x&quot;$2)/1024/1024, $3, $4)}&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/7833000582314978131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/05/converting-numbers-to-decimal-makes-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7833000582314978131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/7833000582314978131'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/05/converting-numbers-to-decimal-makes-it.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-8302053351510222522</id><published>2014-04-10T11:20:00.002-07:00</published><updated>2014-04-10T11:21:07.416-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>bind for chroot</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;cd /mnt/sysimage&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;mount -t proc proc proc/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;mount --rbind /sys sys/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;mount --rbind /dev dev/&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/8302053351510222522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/04/bind-for-chroot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/8302053351510222522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/8302053351510222522'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/04/bind-for-chroot.html' title='bind for chroot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-6821498060169340152</id><published>2014-04-01T08:02:00.002-07:00</published><updated>2014-04-01T08:03:55.034-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>mbr</title><content type='html'>&lt;div&gt;
446 bytes - Bootstrap&lt;/div&gt;
&lt;div&gt;
64 bytes - Partition table&lt;/div&gt;
&lt;div&gt;
2 bytes - Signature&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
deletes mbr only&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# dd if=/dev/zero of=/dev/sdc bs=446 count=1&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/6821498060169340152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/04/mbr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6821498060169340152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6821498060169340152'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/04/mbr.html' title='mbr'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-533016064067162137</id><published>2014-03-11T09:27:00.000-07:00</published><updated>2014-03-11T09:27:00.305-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="vxvm"/><title type='text'>rename disk group</title><content type='html'>ensure file systems are not mounted&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# vxvol -g currentdg stopall&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# vxdg deport currentdg&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# vxdg -n newdg import currentdg&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# vxdg list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# vxrecover -g newdg -sb&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/533016064067162137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/03/rename-disk-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/533016064067162137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/533016064067162137'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/03/rename-disk-group.html' title='rename disk group'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-5802619679115471357</id><published>2014-03-07T22:24:00.001-08:00</published><updated>2014-03-07T22:24:13.937-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="redhat"/><title type='text'>add devices to reflect partition map without reboot</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;partx -v -a /dev/sda&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/5802619679115471357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/03/add-devices-to-reflect-partition-map.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/5802619679115471357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/5802619679115471357'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/03/add-devices-to-reflect-partition-map.html' title='add devices to reflect partition map without reboot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-963554391570897082</id><published>2014-01-16T00:02:00.003-08:00</published><updated>2014-01-16T00:02:08.760-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>boot localdish from grub</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;.localboot 0xffff&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/963554391570897082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/01/boot-localdish-from-grub.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/963554391570897082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/963554391570897082'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/01/boot-localdish-from-grub.html' title='boot localdish from grub'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-3776062831526125769</id><published>2014-01-15T00:12:00.000-08:00</published><updated>2014-01-15T00:12:07.270-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>increase vmware disk size and resize PV</title><content type='html'>&lt;div class=&quot;MsoPlainText&quot;&gt;
increase vdisk size (vsphere client)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
echo 1 &amp;gt; /sys/class/scsi_device/*/device/rescan&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
pvresize&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/3776062831526125769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2014/01/increase-vmware-disk-size-and-resize-pv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/3776062831526125769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/3776062831526125769'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2014/01/increase-vmware-disk-size-and-resize-pv.html' title='increase vmware disk size and resize PV'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-736651612075022624</id><published>2013-12-07T19:33:00.001-08:00</published><updated>2013-12-07T19:33:10.015-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apple"/><category scheme="http://www.blogger.com/atom/ns#" term="mac"/><title type='text'>Could not sign in. Please check your network connection and try again.</title><content type='html'>Key applications on Mac such as iMessage, FaceTime and even Facebook integration with Notifications depend on your Mac&#39;s Serial Number. If the System Information is showing #Serial Number, you will not be able to sign in.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To solve, search for Blank Board Serializer.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/736651612075022624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/12/could-not-sign-in-please-check-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/736651612075022624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/736651612075022624'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/12/could-not-sign-in-please-check-your.html' title='Could not sign in. Please check your network connection and try again.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-6316169172996147204</id><published>2013-09-13T04:38:00.001-07:00</published><updated>2013-09-13T04:38:50.082-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="redhat"/><title type='text'>redhat disable ipv6</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;* /etc/sysconfig/network - add &quot;NETWORKING_IPV6=no&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;* /etc/sysctl.conf - add &quot;net.ipv6.conf.all.disable_ipv6 = 1&quot;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/6316169172996147204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/09/redhat-disable-ipv6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6316169172996147204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/6316169172996147204'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/09/redhat-disable-ipv6.html' title='redhat disable ipv6'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-4605826034570331514</id><published>2013-09-11T07:43:00.000-07:00</published><updated>2013-09-11T07:43:03.049-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="osx"/><title type='text'></title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# hdiutil&amp;nbsp;convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#&amp;nbsp;diskutil list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#&amp;nbsp;diskutil unmountDisk /dev/diskN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#&amp;nbsp;sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;#&amp;nbsp;diskutil eject /dev/diskN&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/4605826034570331514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/09/hdiutil-format-udrw-o-pathtotarget.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/4605826034570331514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/4605826034570331514'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/09/hdiutil-format-udrw-o-pathtotarget.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-2933516672886342603</id><published>2013-08-26T23:35:00.001-07:00</published><updated>2013-08-27T00:12:37.237-07:00</updated><title type='text'>Re-build Grub on Proliant</title><content type='html'>&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;/etc/grub.conf&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;boot=/dev/cciss/c0d0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;/boot/grub/device.map&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;(fd0) &amp;nbsp; &amp;nbsp; /dev/fd0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;(hd0) &amp;nbsp; &amp;nbsp;/dev/cciss/c0d0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/sbin/grub --batch --device-map=/boot/grub/device.map \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;--config-file=/boot/grub/grub.conf --no-floppy&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;grub&amp;gt; root (hd0,0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;grub&amp;gt; setup (hd0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;grub&amp;gt; quit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;a href=&quot;http://nozell.com/blog/2004/05/08/some-tips-to-reinstall-grub-on-an-hp-proliant-server/&quot;&gt;original&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/2933516672886342603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/08/re-build-grub-on-proliant.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2933516672886342603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2933516672886342603'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/08/re-build-grub-on-proliant.html' title='Re-build Grub on Proliant'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-1229740477814583877</id><published>2013-08-23T20:35:00.000-07:00</published><updated>2013-08-23T20:36:46.897-07:00</updated><title type='text'>Issues after upgrading SuSE</title><content type='html'>&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Permission of /root is 710 by default after upgrade&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Timezone may change&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;If server is configured with kdump enabled, Kdump parameter is not preserved in /boot/grub/menu.lst&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;ol&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/ol&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/1229740477814583877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/08/issues-after-upgrading-suse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/1229740477814583877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/1229740477814583877'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/08/issues-after-upgrading-suse.html' title='Issues after upgrading SuSE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-8277645861123794225</id><published>2013-08-21T22:33:00.001-07:00</published><updated>2013-08-21T22:33:47.038-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="suse"/><title type='text'>no gdm and gnome in sles 11</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ensure repo is good&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;zypper install -t pattern x11 gnome&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;edit /etc/sysconfig/displaymanager and windowmanager&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;default_wm=gnome&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;default_display=gdm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;check /root perm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;init 5&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/8277645861123794225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/08/no-gdm-and-gnome-in-sles-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/8277645861123794225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/8277645861123794225'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/08/no-gdm-and-gnome-in-sles-11.html' title='no gdm and gnome in sles 11'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-2867076749596011303</id><published>2013-07-19T02:18:00.001-07:00</published><updated>2013-07-19T02:18:08.510-07:00</updated><title type='text'>remove ^M characters in vim</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;:%s/^M//g where ^M is entered by ctrl+V and ctrl+M&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/2867076749596011303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/07/remove-m-characters-in-vim.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2867076749596011303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2867076749596011303'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/07/remove-m-characters-in-vim.html' title='remove ^M characters in vim'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20000971.post-2100843247024501615</id><published>2013-07-15T12:15:00.003-07:00</published><updated>2013-07-15T12:15:48.359-07:00</updated><title type='text'>set vxdisk to use persistent dsf (agile)</title><content type='html'>&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# vxddladm set namingscheme=osn mode=new&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://codept.blogspot.com/feeds/2100843247024501615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codept.blogspot.com/2013/07/set-vxdisk-to-use-persistent-dsf-agile.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2100843247024501615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20000971/posts/default/2100843247024501615'/><link rel='alternate' type='text/html' href='http://codept.blogspot.com/2013/07/set-vxdisk-to-use-persistent-dsf-agile.html' title='set vxdisk to use persistent dsf (agile)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>