Skip to content

Instantly share code, notes, and snippets.

View eugenetriguba's full-sized avatar

Eugene Triguba eugenetriguba

View GitHub Profile

Keybase proof

I hereby claim:

  • I am eugenetriguba on github.
  • I am eugenetriguba (https://keybase.io/eugenetriguba) on keybase.
  • I have a public key ASCzH1xB_FzsWXu8cDhy7b-9KQr1_YPBSvkaF0IAs3LGmwo

To claim this, I am signing this object:

@eugenetriguba
eugenetriguba / bootableUSB.md
Last active June 16, 2023 11:24
A tutorial on how to create a bootable USB stick using Bash on Mac OS X

How to Create a Bootable USB stick on Mac OS X

Convert the ISO to UDRW format. Note: the names destination and source are used for clarification. The name of the destination does not matter.

$ hdiutil convert -format UDRW -o destination.img source.iso

Reading CCCOMA_X64FRE_EN-US_DV9          (Apple_UDF : 0)…
...............................................................................
Elapsed Time: 11.058s

Disclaimer: This gist is a bit outdated now. The client download page now redirects to a login page that the downloads are guarded behind. You'll want to do a web search for a pulse secure deb file and install that now. Try: http://webdev.web3.technion.ac.il/docs/cis/public/ssl-vpn/ps-pulse-ubuntu-debian.deb. When I installed Pulse Secure 9.1R13, I didn't need to do anything else to get it working.

9.1R13 download: https://drive.google.com/file/d/1xfXsg9aNISAtWUgfVmAWKd_8FE2I_Mbl/view


To install Pulse Secure for Ubuntu 20.04, it is a bit complicated since the support isn't great.

First, we'll want to go through the form at https://www.pulsesecure.net/trynow/client-download/. You'll get an email with download links to the latest versions of pulse secure. Download the Linux

@eugenetriguba
eugenetriguba / i3-cheat-sheet.md
Last active November 30, 2020 14:40
i3 Cheat Sheet

i3 Cheatsheet

i3 is a tiling window manager for Linux.

Any place that has arrowkeys may be replaced with jkl;. So while windows can be moved around with mod-shift-arrowkeys, they can also be moved around with the mod-shift-[jkl;] keys.

Command Description
mod-d Search for app to run (d menu)
mod-shift-q Quit focused app
@eugenetriguba
eugenetriguba / output.txt
Last active June 14, 2021 01:39
Timezone-aware ISO String in JavaScript
$ node
Welcome to Node.js v14.16.1.
Type ".help" for more information.
> const { getTimezoneAwareISOString } = require('./time')
undefined
> getTimezoneAwareISOString()
'2021-06-13T15:42:58.304-05:00'
> new Date().toISOString()
'2021-06-13T20:43:04.271Z'
> getTimezoneAwareISOString(new Date(2020, 11, 15, 12, 15, 12, 100))