Skip to content

Instantly share code, notes, and snippets.

View oyiptong's full-sized avatar

Olivier Yiptong oyiptong

View GitHub Profile
@oyiptong
oyiptong / cpu_power.py
Created February 3, 2021 01:01 — forked from carlashley/cpu_power.py
CPU Power
#!/usr/bin/python
# A dictionary of available CPU's, COU scheduler limit, and CPU speed limit
from SystemConfiguration import (
SCDynamicStoreCreate,
SCDynamicStoreCopyValue,
)
ds = SCDynamicStoreCreate(None, 'power', None, None)
result = SCDynamicStoreCopyValue(ds, 'State:/IOKit/Power/CPUPower')
{
"teachers-heard": [
67,
24.907063197026023
],
"outbreak-plans": [
61,
22.676579925650557
],
"no-concerns": [
(function () {
api.register('font-js', function () {
var t0 = performance.now(); // If you insert a new font, please sort the list
var fonts = ['.Aqua Kana', '.Helvetica LT MM', '.Times LT MM', '18thCentury', '8514oem', 'AR BERKLEY', 'AR JULIAN', 'AR PL UKai CN', 'AR PL UMing CN', 'AR PL UMing HK', 'AR PL UMing TW', 'AR PL UMing TW MBE', 'Aakar', 'Abadi MT Condensed Extra Bold', 'Abadi MT Condensed Light', 'Abyssinica SIL', 'AcmeFont', 'Adobe Arabic', 'Agency FB', 'Aharoni', 'Aharoni Bold', 'Al Bayan', 'Al Bayan Bold', 'Al Bayan Plain', 'Al Nile', 'Al Tarikh', 'Aldhabi', 'Alfredo', 'Algerian', 'Alien Encounters', 'Almonte Snow', 'American Typewriter', 'American Typewriter Bold', 'American Typewriter Condensed', 'American Typewriter Light', 'Amethyst', 'Andale Mono', 'Andale Mono Version', 'Andalus', 'Angsana New', 'AngsanaUPC', 'Ani', 'AnjaliOldLipi', 'Aparajita', 'Apple Braille', 'Apple Braille Outline 6 Dot', 'Apple Braille Outline 8 Dot', 'Apple Braille Pinpoint 6 Dot', 'Apple Braille Pinpoint 8
@oyiptong
oyiptong / manifest.json
Created March 29, 2020 08:53
File Handling
{
"manifest_version": 2,
"description": "Native FS Demo Editor",
"name": "Native FS Editor",
"short_name": "nativefs_ed",
"start_url": ".",
"display": "standalone",
"background_color": "grey",
"icons": [
{
{
"wrapperType": "track",
"kind": "podcast",
"artistId": 974891224,
"collectionId": 360084272,
"trackId": 360084272,
"artistName": "Joe Rogan",
"collectionName": "The Joe Rogan Experience",
"trackName": "The Joe Rogan Experience",
"collectionCensoredName": "The Joe Rogan Experience",
{
"wrapperType": "track",
"kind": "podcast",
"collectionId": 1012570406,
"trackId": 1012570406,
"artistName": "Andy Frisella #100to0",
"collectionName": "The MFCEO Project",
"trackName": "The MFCEO Project",
"collectionCensoredName": "The MFCEO Project",
"trackCensoredName": "The MFCEO Project",

Keybase proof

I hereby claim:

  • I am oyiptong on github.
  • I am oyiptong (https://keybase.io/oyiptong) on keybase.
  • I have a public key ASCfEbnT6GNwRY-gV_LjiA0nmbWUg9cB0PzQzNG8Rbcnzwo

To claim this, I am signing this object:

// -- snip --
manager()->CreateSwapFileForURL(
url(),
base::BindOnce([](CreateFileWriterCallback callback) {
base::File::Error result,
const storage::FileSystemURL& swap_url) {
// Canned answer for now.
std::move(callback).Run(
NativeFileSystemError::New(base::File::FILE_OK),
nullptr);
#!/usr/bin/env ruby
require 'csv'
require 'json'
if ARGV.length == 0
puts "needs an argument. #{ARGV.length}"
exit(1)
end
rows =[]

Problems building due to NaCL:

$ gn gen out/macmac --args='cc_wrapper="ccache" is_component_build=true enable_nacl=false'
ERROR at //components/nacl/features.gni:6:1: Can't load input file.
import("//build/config/gclient_args.gni")
^---------------------------------------
Unable to load:
  /Users/olivier_yiptong/Projects/chromium/src/build/config/gclient_args.gni
I also checked in the secondary tree for: