如何轉憂鬱為開朗?

現今,憂鬱症,恐怕是比癌症還要多的一種病症,或許你我正為此所苦。

有沒有救贖自己、脫離憂鬱的方法?

借助前人的智慧,或許可以幫助我們獲得心靈平靜,及早脫離苦海!

以下是個人的探索心得,改寫自聖嚴法師-大法鼓 0841 節目的對白。

------

如何轉憂鬱為開朗?

現代人扮演的角色比起過去農村時代多太多了,人與人之間,有人際關係的壓力,每個人也有來自家庭的壓力,一旦壓力過大,長期下來若無法化解,易形成憂鬱,產生病症。

何謂壓力?所謂壓力的意思是說,工作生活在各方面都會對自己形成一種責任感,而自己是要選擇逃避這份責任呢?或是接受這份責任?這中間便有了壓力。

那麼,佛法是否有什麼智慧可以幫助我們化解這些憂慮呢?

有的!方法就是:少欲知足,隨緣不變。

這是什麼意思?

時代快速變遷,也就是環境經常在變,我們自己要學會適應。

環境變了就是緣在變了,緣在變,我們就要跟著變,我們自己用的東西要學習要跟著變,但我們自己不要變,自己的心不要隨著環境的變而變,應該回歸到自然的情況,也就是說,心中少一些欲念,少一些不需要的東西的追求,這樣就能夠保護我們心理的平衡。

此外,我們要儘量地學習,雖然不學習會變成淘汰,不過,學習應該有,但緊張不應該有,競爭應該有,但恐懼不應該有,也就是說只要盡自己的力量就好,其他不要多想,努力學習盡力改進,但是不要恐懼,不要害怕,因為恐懼害怕都沒有用,只有努力是最有用的,這就是佛法的基本原則。

-----

以上修改自以下節目對白。

如何防止「假新聞」?

如何防止「假新聞」?

方法很簡單,那就是「查證、查證、再查證」。

記者在報導新聞事件之前要查證,報導之後也要繼續查證。

最重要的是,閱聽人自己也要去查證;避免人云亦云,凡事先存疑,觀察正反面之後,進行理性思考,才是最好的辨證良方。

至於,由政府出面防止「假新聞」,由政府來告訴你什麼才是「假新聞」,實是大開民主倒車,政府為了維護政權利益,人為控制新聞真假,和變相地箝制新聞自由無異。

史諾登獲俄國批准延長居留年限

還記得美國 CIA 前情報員史諾登嗎?有許多人認為他是悍衛人民穩私權的大英雄。

如果你像他一樣,年薪20萬美元(600萬台幣),有位嬌美的女友,兩人一起過著舒適的生活,你願意放棄前途、犧牲這一切,出面公開美國政府秘密監控人民的真象?只為撫平良心的不安?

電影 Snowden《中譯:神鬼駭客:史諾登》詳細描敍史諾登如何變成一名反抗CIA體制、揭露美國政府全球監聽計畫的英雄人物。(今日又看了一遍)

目前已經有超過百萬人連署,呼龥美國政府能下令赦免史諾登,我們且看川普新政府要如何處理這個棘手的難題。

兩天前,蘇聯政府宣布延長史諾登至少二年的居留權,消息來源如下:

https://bowenpress.com/news/bowen_159031.html

台灣神,比鬼多!

今晚一則新聞引起了我的興趣。。。

「美江2.0」好狂? 教會遭爆「抖身術」求財?

宗教原是對神明的一套信仰,通常具有特定的敬崇儀式。宗教亦有其自成一格的道德準則,可藉以調整信徒自身的行為。

不過,在進行祈禱時,不斷地以「抖抖抖」的方式,要信徒們抖出金銀財寶,這可真是前所未聞。令人不敢置信的是,竟然會有這麼多人甘心追崇,不假思索,盲目地「我抖、我抖、我抖抖抖」。 ;-)

台灣人的信仰,真是無奇不有,各種「教」派都有,那個「教」來這個「教」去的,五花八門,令人稱奇。

據內政部2014年的統計,全台廟宇登記已達1萬2083座,超過全台超商的數量(10069間),專門興建廟宇的營造商表示,近幾年建廟的案子一個接一個,幾乎全年無休,顯見各地寺廟需求驚人。多數的廟宇不但金碧輝煌,而且造價上億元、一間比一間還大,身價簡直更勝豪宅。這或許是因為現代人內心寂寞、信仰成為人們精神糧食,心靈慰藉的管道,造就了台灣廟宇數量大幅成長的主因。

這則新聞,讓我想到這個問題:「台灣究竟有幾多?」

個人認為至少有三多:

1。台灣錢真正多。以前稱台灣錢是淹腳目,現今則常見詐騙及洗錢的案例,宗教騙財更是時有所聞。。。這樣看來,台灣人的錢,怎會不多?

2。「出門小心不要踩到槍」(台語歌星沈文程唱的),所以,台灣的子彈,也很多。

3。台灣神真是多,廟比超商多,神祇簡直比鬼還多,更有甚者,現今被封為神的人也越來越多,什麼柯神啦、賴神啦、花神啦,真正是比「胡神」還厲害!(註:「胡神」就是蒼蠅啦!)

台灣到底怎麼啦?

盲、盲、盲,傻、傻、傻,不思辨,人云亦云,「信我得永生?信我拜我就可消災解厄?」,這樣,也可以說是真信仰麼?抑或,這是一種「社會病」、「文化盲」?!

來玩 PDP-11 配備第七版的 UNIX

開機進入 PDP-11:

pdp-11

用 UNIX 7ed 中的 cc 編譯和執行 C 語言的程式:

pdp-11-c

Turn your PC into a PDP-11 running Seventh Edition UNIX. This way you can run UNIX just like Dennis Ritchie and Ken Thompson did back in 1979. This is a sanos port of Bob Supnik’s PDP-11 simulator. I have made an ISO image with sanos, the PDP-11 simulator, and the UNIX V7 kit from The Computer History Simulation Project. Just put the CD-ROM in your PC and boot. Then your PC is turned into a PDP-11 running UNIX V7! This is great fun if you’re a nostalgic UNIX geek.

If your want to try the UNIX V7 demo first download and unzip the ISO image. You can burn this image to a CD-ROM using your favorite CD-burner program and then boot the computer from the CD-ROM. You can also try it out using VMware by setting pdp11.iso as the ISO image for the CD-ROM device. You can get the source I have used to build the image here.

When you boot from the CD-ROM, sanos boots and starts the PDP-11 simulator. The simulator then boots UNIX V7 from the image.

  • At the boot prompt type: b
  • At the @ prompt type: boot<enter>
  • At the : prompt type: rl(0,0)rl2unix<enter>
  • At the # prompt type <ctrl-d>
  • Login as root with password root

Your UNIX V7 system is now up and running. You can use your ordinary UNIX commands like cat, ls, man, etc.

You can try to compile and run a simple C program:

逆向工程求職記

這裡有個十分有趣的員工招募啟事。

一家德國公司徵求逆向分析工程師,應徵者得先實作三項挑戰(底下有附檔),該公司將根據逆向實作的程度,來決定要不要錄取。

各位有興趣到德國科隆、波恩、柏林工作嗎?可以挑戰看看喔!(反正台灣只有22K,到海外工作,或許會有不錯的待遇,以及新奇、有趣的發展。 😉 )

這家公司叫「德國聯邦情報局」!!!

Reversing Challenge

Wir suchen für unsere Standorte im Großraum Köln/Bonn und Berlin qualifizierte Mitarbeiterinnen und Mitarbeiter im Bereich Software Reverse Engineering.

Um Ihnen die Möglichkeit zu geben uns von Ihrer Qualifikation zu überzeugen, haben wir drei Aufgaben vorbereitet, die gestaffelt nach unterschiedlichen Schwierigkeitsgraden Ihre Analysefähigkeiten in diesem Bereich testen.

Lösen Sie die Aufgaben soweit Sie dazu in der Lage sind und legen Sie den ausgefüllten Antwortbogen unserer Stellenanzeige mit der Kennziffer TA/052-16A bei.

Alle für die Aufgaben notwendigen Materialien sowie den Antwortbogen als PDF finden Sie im unten verlinkten ZIP-Archiv.

Wir wünschen Ihnen viel Spaß beim Reversen und freuen uns auf Ihre Bewerbung.

BND Reversing Challenge (zip, 502KB)

 

Pwntools v3.0 (CTF 函式庫框架) 推出!

Pwntools 是一款 CTF 競賽(資安搶旗攻防賽)框架,以及漏洞開發的函式庫,以 Python 設計而成(Python 2.7)。

Pwntools 網址:http://pwntools.com/

pwntools is a CTF framework and exploit development library. Written in Python, it is designed for rapid prototyping and development, and intended to make exploit writing as simple as possible.


 

Try It Now!

You can now do a live demo of Pwntools, right in your browser. Alternately, you can SSH to the same host, and log in as user zerocool with this private key (passwordi_promise_not_to_be_evil).

It will drop you into a clean, Docker-ized container. There is nothing of value on the VPS, so please don’t be evil.

Documentation

Our documentation is available at docs.pwntools.com

To get you started, we’ve provided some example solutions for past CTF challenges in our write-ups repository.

Installation

pwntools is best supported on 64-bit Ubuntu 12.04 and 14.04, but most functionality should work on any Posix-like distribution (Debian, Arch, FreeBSD, OSX, etc.). Python 2.7 is required.

Most of the functionality of pwntools is self-contained and Python-only. You should be able to get running quickly with

If you’d like to be an early tester of the the current beta release, add --pre to the command-line.

However, some of the features (assembling/disassembling foreign architectures) require non-Python dependencies. For more information, see thecomplete installation instructions here.

微軟宣佈:PowerShell 開源了,並且能在 Linux 上執行!

消息來源:https://azure.microsoft.com/en-us/blog/author/jsnover/

powershell-opensrc

PowerShell for Linux 現在可以在 GitHub 找得到喔。。。

微軟正以實際行動證明他是愛呆丸啦。。。不是,是愛 Linux 啦。。。

「You’ve heard Satya Nadella say “Microsoft loves Linux” and that’s never been more true than now.

您必定聽過微軟執行長說:“微軟愛 Linux”,這話此刻再真實不過了。」

誰說 Windows 和 Linux 不能交配(交換配置)呢?— 這句是我說的。

ms-love-linux

======

全文如下:

Today’s customers live in a multi-platform, multi-cloud, multi-OS world – that’s just reality. This world brings new challenges and customers need tools to make everything work together. Microsoft is working company-wide to deliver management tools that empower customers to manage any platform, from anywhere, on any device, using Linux or Windows. This shift to a more open, customer-obsessed approach to deliver innovation is one of the things that makes me most excited to come to work every day.

You’ve heard Satya Nadella say “Microsoft loves Linux” and that’s never been more true than now. Nearly one in three VMs on Azure are Linux. Nearly 60 percent of third-party IaaS offers in the Azure Marketplace are open source software (OSS). We have forged strong industry partners to extend choice to our customers. We’ve announced SQL Server on Linux, as well as open sourced .NET. We added Bash to Windows 10 to make it a great platform for developing OSS. And, we’re active contributors and participants to numerous open source projects (e.g. OpenSSH, FreeBSD, Mesos, Docker, Linux and many more) across the industry.

Today, we are taking the next step in our journey. I am extremely excited to share that PowerShell is open sourced and available on Linux. (For those of you who need a refresher, PowerShell is a task-based command-line shell and scripting language built on the .NET Framework to help IT professionals control and automate the administration of the Windows, and now Linux, operating systems and the applications that run on them.) I’m going to share a bit more about our journey getting here, and will tell you how Microsoft Operations Management Suite can enhance the PowerShell experience.

The journey to opening up PowerShell

Let’s start the journey to PowerShell on Linux, and an open sourced version with a story…

My customer was upset.

Early in the days of Monad (before it was PowerShell), I gave a demo to an executive of a large customer. He loved it but now he was angry with me.

He had asked me in what language it was implemented and was unhappy with my answer: C#. Confused, I asked why that was a problem. “Because” he told me, “Monad is exactly the right approach and I want to standardize my entire company on it, but I can’t because .NET is not available on Linux!”

In the past, Microsoft’s business focus meant that .NET, and thus PowerShell, were only available on Windows. But this is a new Microsoft. Satya’s leadership and Azure have shifted us to a more open, customer-centric, mindset captured perfectly in this photo:

Microsoft loves Linux_2

Microsoft wants to earn customers’ preference as the platform for running all their workloads – Linux as well as Windows. This new thinking empowered the .NET team to port .NET Core to Linux and that in turn, enabled PowerShell to port to Linux as well. PowerShell on Linux is now designed to enable customers to use the same tools, and the same people, to manage everything from anywhere. It is initially available on Ubuntu, Centos, as well as Red Hat, and also runs on Mac OS X. More platforms will be added in the future. You can download Alpha builds and check out the source code from GitHub.

Now, users across Windows and Linux, current and new PowerShell users, even application developers can experience a rich interactive scripting language as well as a heterogeneous automation and configuration management that works well with your existing tools. Your PowerShell skills are now even more marketable, and your Windows and Linux teams, who may have had to work separately, can now work together more easily.

So, where are we in this journey? We are in the beginning stages and in learning mode. We started by open sourcing small portions of PowerShell and talking to a number of our partners who were experienced with open source to understand what it took to succeed. What we learned, is that it is critical that individual users can use Git to checkout code, make changes, compile everything on their machines and run all the tests to verify that their change didn’t break anything. This required a large investment in our engineering/build/test systems. We also worked to define a governance model so we had clear roles, responsibilities, and processes so that community contributions could be smoothly incorporated into the product.

The PowerShell team has always prided itself on being a very community focused team but this announcement takes it to the next level by making the source code available and by adopting an open source development model where we can enjoy a deeper connection with the community in RFCs, issues and accept contributions directly. We also needed to extend our community since open source, like so many things, takes a village and that village is key to a great experience! We are partnering with third party companies – Chef, Amazon Web Services, VMware, and Google to name a few – to create a rich, seamless experience across the platforms you know and use.

As we port PowerShell to Linux, we are making sure that we are a first class citizen on that platform. We fit in well with the architecture, idioms and existing tools. This was pretty easy as most of the original PowerShell team had deep Unix backgrounds and that shows in our design. There were a number of little changes that we made and two big things:

  1. We created a PowerShell Editor Service. This allow users to choose from a range of editors (VS Code and Sublime with others to follow) and get a great PowerShell authoring experience with Intellisense, debugging, etc.
  2. We will be extending the PowerShell Remoting Protocol (MS-PSRP) to use OpenSSH as a native transport. Users will have the option to use SSH or WINRM as a transport.

The initial release is an “alpha” and is community supported. In the future, we will deliver an official Microsoft released version of PowerShell based on open source to anyone running a supported version of Windows or *nix. The timing of the official Microsoft version will be based upon community input and business needs. We hope all of you will help us get it right!

Extending the PowerShell experience with Microsoft Operations Management Suite

I also want to tell you more about how today’s PowerShell news extends what you can do with our cloud management solution, Operations Management Suite (OMS). OMS gives you visibility and control of your applications and workloads across Azure and other clouds. Integral to this, it enables customers to transform their cloud experience when using PowerShell on both Linux and Windows Server. OMS Automation elevates PowerShell and Desired State Configuration (DSC) with a highly available and scalable management service from Azure. You can graphically author and manage all PowerShell resources including runbooks, DSC configurations and DSC node configurations from one place.

With OMS hybrid runbook worker, you can extend your OMS Automation capability and apply, monitor and update configurations anywhere, including on-premises. Today we also made the OMS monitoring agent for Linux generally available. Together, customers can gain rich insights and real-time visibility into their Linux workloads, and the power to quickly remediate any issues that may arise.

We hope that all of you will take the time to test drive PowerShell on Linux and let us know what you think! You can also learn more about OMS Automation here. And, be sure to check us out at LinuxCon next week. Wim Coekaerts will be giving a keynote address, we’ll have a booth where we’ll be showing PowerShell, and I’ll be doing a session that will be packed with demos.

If you are new to PowerShell, a great way to start learning is with our Learning PowerShell repository on GitHub. We also offer a free Microsoft Virtual Academy online course: Getting Started with PowerShell 3.0 Jump Start. You’ll want to join/participate in the PowerShell Community at powershell.org/ and follow the PowerShell Team blog. We’ll be updating these to meet the needs of the Linux community (e.g. examples) in the near future.

This has been a long time coming and it is going to be a lot of fun so please join us so that together we can produce a tool that knocks our socks off every time we use it.