Skip to content

Instantly share code, notes, and snippets.

View r14c's full-sized avatar

Romina K S r14c

View GitHub Profile
@r14c
r14c / bashem.js
Last active November 30, 2023 17:58
Bulk Delete Storyblok Assets
function bashEm(spaceId, token) {
return (ids) => fetch(`https://app.storyblok.com/v1_us/spaces/${spaceId}/assets/bulk_destroy`, {
"headers": {
"authorization": token,
"content-type": "application/json",
},
"referrer": "https://app.storyblok.com/",
"body": JSON.stringify({ ids: ids }),
"method": "POST",
"mode": "cors",
@r14c
r14c / gtm-export-tags.js
Last active May 15, 2024 16:40
export a list of GTM tags
/**
* 1. go to google tag manager > workspace > tags
* 2. set show rows = ALL
* 3. "inspect elemement" > console
* 4. paste this snippet
* @link gemini://sunshinegardens.org/~xj9/paste/3b1e5faf0a5767827f8594900b3f0d366c2460edf74f2e711ac3512e2e7df383.gmi
*/
(function () {
const qs = document.getElementsByClassName('wd-tag-row')
let result = []
@r14c
r14c / keybase.md
Last active January 26, 2020 19:22
keybase.md

Keybase proof

I hereby claim:

  • I am r14c on github.
  • I am xj9 (https://keybase.io/xj9) on keybase.
  • I have a public key whose fingerprint is B826 7A49 A516 A8EF 3C37 CB81 9431 D347 149E E5EF

To claim this, I am signing this object:

@r14c
r14c / broken.test.js
Last active November 30, 2016 20:07
TypeError: expect(...).toMatchObject is not a function
/**
* this test (unexpectedly!) fails with: `TypeError: expect(...).toMatchObject is not a function`
*
* @see {@link https://facebook.github.io/jest/docs/api.html#tomatchobjectobject}
*/
describe('a broken test', () => {
it('will fail', () => {
expect({foo: 'bar', baz: false}).toMatchObject({foo: 'bar'})
})
})
@r14c
r14c / README.md
Last active July 29, 2023 17:15
Autoscroll Userscript
@r14c
r14c / README.md
Last active March 14, 2016 06:17
Hero Punch [Developer] Member Application

[Hero Punch] is creating a [blueprint] for the future of work. This project is ambitious, but we believe that cooperation is the key to a bright future and we want to be the force that makes that future happen. Technology is a powerful force multiplier. Steve Jobs called computers "bicycles for the mind". Our challenge is to make advanced technology accessible to anyone. We want to enable to world to do amazing things. Are you ready to challenge the status quo?

Hero Punch is a [workers cooperative], there are no bosses or managers; members are equal co-owners. Projects are managed democratically by teams. We strive to create a stimulating atmosphere for creativity and problem solving that is

@r14c
r14c / remove-docker-containers.md
Last active January 22, 2016 22:14 — forked from ngpestelos/remove-docker-containers.md
Remove unused Docker containers and images

Delete all containers

$ [sudo] docker ps -q -a | xargs [sudo] docker rm

Notes

-q prints only the container IDs, -a prints all containers.

@r14c
r14c / fastmail-dark.user.css
Created December 2, 2015 07:40
Fastmail Dark User Style
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.fastmail.com") {
.MainNavToolbar,
.app-list,
.app-belowViewBar,
.app-listItem-link,
.v-Sidebar--showRefresh,
.v-Toolbar.app-toolbar {
color: #ddd !important;
background-color: #1C2126 !important;
tab.tghlpr_group_tab {
color: #8FA1B2 !important;
text-shadow: none !important;
border-radius: 0 !important;
border: none !important;
border-right: 1px solid #555 !important;
}
tab.tghlpr_group_tab[activeGI] {
color: #F5F7FA !important;
background-color: #1A4666 !important;