Skip to content

Instantly share code, notes, and snippets.

View userlerueda's full-sized avatar

Luis Rueda userlerueda

View GitHub Profile
@jampajeen
jampajeen / LC_CTYPE.txt
Created November 21, 2015 13:02
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())
@niespodd
niespodd / package.json
Last active May 8, 2023 09:07
Making web3/bitcore-lib work with Angular 6-11 and >=11
{...
"scripts": {
"postinstall": "node patch.js",
...
}
}
@amake
amake / innosetup-linux-macos.org
Last active July 2, 2024 15:48
Inno Setup on Linux and macOS

Inno Setup on Linux and macOS

Inno Setup is a popular installer builder for Windows. Of course it is made to run on Windows only, by default. But what if you want to build Windows installers off Windows, i.e. on Linux or macOS?

You’re in luck: It’s possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

@userlerueda
userlerueda / fix_catalina_cert.sh
Last active August 25, 2020 19:20
Script to get certificate from web server and add to apple certificate store
#!/usr/bin/env bash
## To use this script, copy it to your ~/bin directory and then run it by executing:
## fix_catalina_cert.sh 10.201.146.172 443
## You will be asked to authenticate when storing in keychain
echo | openssl s_client -showcerts -servername ${1} -connect ${1}:${2} 2>/dev/null | openssl x509 -inform pem -out /tmp/untrusted.cer
security add-trusted-cert -k ~/Library/Keychains/login.keychain-db /tmp/untrusted.cer