Skip to content

Instantly share code, notes, and snippets.

@fakeheal
fakeheal / copy.js
Last active December 13, 2022 11:47
Copy cards title & link as markdown from a specific Trello Board List
const print = (text, level = 'warn') => console[level](`HELPER: ${text}`)
const NOT_LABELED = 'Not Labeled';
const LIST_NAME = 'Live';
const SELECTORS = {
list: {
wrapper: 'list-wrapper',
header: 'list-header-name-assist'
},
const toRemove = [
'If You Need The Most Awesome Violin Music, Hear This •',
'Traitor',
'Revolution',
'Sacrifice',
'Endgame',
'Overlord',
'Darkness',
'A Soundtrack for the Apocalypse'
];
@fakeheal
fakeheal / App.tsx
Created May 18, 2021 10:52
Reproductive Health Permissions + Fetch Data
import React, { useState } from 'react'
import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, View } from 'react-native'
import { Colors } from 'react-native/Libraries/NewAppScreen'
import AppleHealthKit, { HealthKitPermissions, HealthValue } from 'react-native-health'
/* Permission options */
const permissions = {
permissions: {
read: [
@fakeheal
fakeheal / App.tsx
Created May 17, 2021 10:41
Example: Request read/write Steps and Query Data
import React, { useState } from 'react'
import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, View } from 'react-native'
import { Colors } from 'react-native/Libraries/NewAppScreen'
import AppleHealthKit, { HealthKitPermissions, HealthValue } from 'react-native-health'
/* Permission options */
const permissions = {
permissions: {
read: [AppleHealthKit.Constants.Permissions.Steps],
@fakeheal
fakeheal / RescueTime Productivity Time.scpt
Last active February 26, 2020 13:59
AppleScript for returning total productivity time for the current day tracked by Rescue Time
tell application "JSON Helper"
-- Set your api key here
-- You can get it at: https://www.rescuetime.com/anapi/manage
set rescuetime_api_key to ""
set {year:y, month:m, day:d} to (current date)
set today to y & "-" & m & "-" & d
set rescuetime to fetch JSON from "https://www.rescuetime.com/anapi/data?key="& rescuetime_api_key &"&format=json&restrict_begin=" & today & "&restrict_end=" & today
set rows to rows of rescuetime as list
@fakeheal
fakeheal / file.js
Last active January 11, 2020 12:58
Easily unfollow people on last.fm
/**
* Open console and paste the following code.
*
* If you have multiple pages with people you're following,
* wait for the page to refresh and the press on your keyboard:
* ARROW UP + ENTER.
*
* This will execute the two lines above, unfollowing the people from the page.
*/
@fakeheal
fakeheal / file.js
Created March 16, 2018 15:31
How to get 1000 score in Got Rhythm (https://www.concerthotels.com/got-rhythm)
setInterval(function() { $("#canvas").click(); }, 500);
<?php
use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CategoryProductTable extends Seeder
{
/**
* Run the database seeds.
@fakeheal
fakeheal / exec
Created April 14, 2016 07:45
Get invalid recipient's emails from mailgun
php logs.php > logs.txt

Keybase proof

I hereby claim:

  • I am FakeHeal on github.
  • I am fakeheal (https://keybase.io/fakeheal) on keybase.
  • I have a public key whose fingerprint is D80B 9BFB 5FD6 2E5B 4EB7 D9D6 09A9 E966 1025 B732

To claim this, I am signing this object: