Skip to content

Instantly share code, notes, and snippets.

View ompugao's full-sized avatar

ompugao

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ompugao on github.
  • I am ompugao (https://keybase.io/ompugao) on keybase.
  • I have a public key ASCvgIzHlvaBMqkp3j15ycXkQMor2b9-F_X4Vdjc6cyNbwo

To claim this, I am signing this object:

@ompugao
ompugao / README.md
Last active October 10, 2022 06:01
password duplicates merger for conversion of passwords from google to bitwarden

Password Duplicates Merger

Usage

# export passwords from google
python3 convert_googlepasswords_to_bitwarden.py ./Google\ Passwords.csv ./bitwarden.csv
# import bitwarden.csv via csv(bitwarden)
@ompugao
ompugao / install.sh
Last active June 17, 2022 03:16
Logseq desktop
curl https://gist.githubusercontent.com/ompugao/d98780de08f3e71caffbfc0cd8522e6e/raw/fcf708f6ef9d98ed924c4a4c8485c84c12aae7b3/setup.sh | /bin/bash
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ompugao
ompugao / auto-cpufreq.conf
Created January 15, 2022 02:19
/etc/auto-cpufreq.conf
# settings for when connected to a power source
[charger]
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# preferred governor.
governor = performance
# minimum cpu frequency (in kHz)
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# to use this feature, uncomment the following line and set the value accordingly
@ompugao
ompugao / casadi_mpc.py
Last active October 8, 2021 02:56 — forked from mayataka/casadi_mpc.py
MPC via CasADi
from casadi import *
import math
import numpy as np
class MPC:
def __init__(self):
# 問題設定
T = 1.0 # ホライゾン長さ (MPCなので短め)
N = 20 # ホライゾン離散化グリッド数 (MPCなので荒め)
@ompugao
ompugao / Xwrapper.config.patch
Created August 10, 2021 07:07
patchs for dlbox to activate monitor connection
15c15,18
< allowed_users=console
---
>
> # allowed_users=console
> allowed_users=anybody
> needs_root_rights=yes# from
@ompugao
ompugao / openrave_ubuntu20.04_diff_2.patch
Created February 17, 2021 03:25
openrave_ubuntu20.04_diff_2.patch
diff --git a/.gitignore b/.gitignore
index d6136dbab..956bb7caf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ msvc_soqt/
src/models/
myrelpath.pyc
+build
diff --git a/CMakeLists.txt b/CMakeLists.txt
@ompugao
ompugao / openrave_installation.patch
Created December 22, 2020 09:21
openrave installation patch
diff --git a/install-dependencies.sh b/install-dependencies.sh
index 01a43fe..db378e6 100755
--- a/install-dependencies.sh
+++ b/install-dependencies.sh
@@ -6,6 +6,7 @@
# Description:
# OpenRAVE Installation Script: Dependencies
+set -e
# Check ubuntu version
@ompugao
ompugao / Dockerfile
Created September 30, 2020 11:35
openrave dockerfile (ubuntu 20.04)
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt -y update && apt -y upgrade && apt -y install git cmake build-essential lsb-release sudo && rm -rf /var/lib/apt/lists
WORKDIR /workdir
RUN apt -y update && \
apt install -y --no-install-recommends build-essential cmake doxygen \
g++ git octave python-dev python-setuptools wget mlocate \