Skip to content

Instantly share code, notes, and snippets.

@bobholt
bobholt / resources.md
Last active August 30, 2016 05:24
JavaScript Development Resources

This is a work in progress. If I missed something or someone, please let me know!

Best Practices

It's hard to recommend best practices in general without context, but basically, writing clean, readable code with lots of comments, and doing a lot of automated unit testing, followed by an automated build process using ANT or Grunt to concatenate and minify files is a start.

Twitter

I don't focus much on blogs any more. I focus more on Twitter. If the people I follow there recommend something, I'll go read it. Here's the best of my Twitter list, including developers, conferences, and interesting groups. There are other great developers on Twitter, but these tweet mostly about development:

Developers

@tchiavegatti
tchiavegatti / check_version.py
Last active November 15, 2021 20:57
[Check python version on a Jupyter notebook] #jupyter
# Check version runing on Jupyter notebook
from platform import python_version
print(python_version())
# Check version inside your Python program
import sys
print(sys.version)
# Check version in command line or shell
python --version
@unshifty
unshifty / jurik.py
Created July 23, 2020 12:41
Pinescript jurik ma
jmapower = input(title="JMA Power", type=input.integer, defval=2)
jmaphase = input(title="Phase", type=input.integer, defval=50)
jma(src, length, phase, power) =>
phaseRatio = phase < -100 ? 0.5 : phase > 100 ? 2.5 : phase / 100 + 1.5
beta = 0.45 * (length - 1) / (0.45 * (length - 1) + 2)
alpha = pow(beta, power)
jma = 0.0
e0 = 0.0
e0 := (1 - alpha) * src + alpha * nz(e0[1])
e1 = 0.0
# Latest available updates for Windows 10 RTM / version 1507 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1507
click on "Last Updated" column to sort by newest update
Cumulative Update for Enterprise 2015 LTSB
https://www.catalog.update.microsoft.com/Search.aspx?q=cumulative+1507
@jivanpal
jivanpal / kill-adobe-daemons.sh
Last active August 6, 2023 17:23
Stop Adobe Creative Cloud daemons (background processes) in their tracks
#!/bin/bash
if [ "$1" = "-s" ] || [ "$1" = "--show" ]; then
show=true
else
show=false
fi
if $show || [ "$1" = "-v" ] || [ "$1" = "--verbose" ]; then
verbose=true
@sukesh-ak
sukesh-ak / README.md
Last active October 26, 2023 10:15
How to Convert OVA to VHDX

How to convert OVA to VHDX

  • Rename .OVA file to .7z
  • Use winrar to extract .vmdk out of it

Read here and install qemu (extract zip file)

https://cloudbase.it/qemu-img-windows/

qemu-img convert "D:\VirtualBox\Open-disk001.vmdk" -O vhdx -o subformat=dynamic "D:\VirtualBox\Open.vhdx"

@DGivney
DGivney / httpd.asm
Last active January 4, 2024 13:58 — forked from xenomuta/httpd.asm
section .text
global _start
_start:
xor eax, eax ; init eax 0
xor ebx, ebx ; init ebx 0
xor esi, esi ; init esi 0
jmp _socket ; jmp to _socket
_socket_call:
@pmttavara
pmttavara / defer.hpp
Created March 25, 2018 07:27
The definitive defer implementation for C++. Syntax: defer { statements; };
#ifndef defer
struct defer_dummy {};
template <class F> struct deferrer { F f; ~deferrer() { f(); } };
template <class F> deferrer<F> operator*(defer_dummy, F f) { return {f}; }
#define DEFER_(LINE) zz_defer##LINE
#define DEFER(LINE) DEFER_(LINE)
#define defer auto DEFER(__LINE__) = defer_dummy{} *[&]()
#endif // defer
@mikroskeem
mikroskeem / qemu.sh
Last active February 28, 2024 14:22
Intel GVT (vGPU) and QEMU example
#!/bin/bash -e
# https://www.kraxel.org/blog/2018/04/vgpu-display-support-finally-merged-upstream/
# You should set up your system as following:
# 1) Add 'i915.enable_gvt=1 intel_iommu=on iommu=pt' to boot arguments
# 1.1) If you get Windows guest working somehow, then add 'kvm.ignore_msrs=1' to avoid guest BSOD-ing
# (Windows does weird stuff).
# 2) `MODULES=(kvm kvmgt i915)` in /etc/mkinitcpio.conf
# 3) `echo -e "options i915 enable_gvt=1\nsoftdep i915 pre: kvmgt" > /etc/modprobe.d/20-kvmgt.conf` for sure