Skip to content

Instantly share code, notes, and snippets.

View delete sidekiq jobs example
require 'sidekiq/api'
queue = Sidekiq::Queue.new("default")
queue.each do |job|
job.klass # => 'TestWorker'
job.args # => ['easy']
job.delete if job.jid == 'abcdef1234567890' || job.klass == 'TestWorker'
end
@FutoRicky
FutoRicky / gist:ee94c237f011e005270642850d31d9e2
Created Jul 23, 2019
Instructions to modify inactive pull request locally
View gist:ee94c237f011e005270642850d31d9e2
https://help.github.com/en/articles/checking-out-pull-requests-locally
View kill_process
ps -ax | grep <application name>
kill -p <PID>
------------------------------
kill rails s:
$ lsof -wni tcp:3000
$ kill -9 PID
View micr-encoding.tff

Ä OS/2√fi¨NcmapU©æ˸¶glyfW3‘X§5@head‡Êæ9‰6hhea3í:$hmtx∫!Ñ:@\locaÑîì∆:ú0maxp:à name^O:Ï–post<º ê @ Å
å" ˇSaxí∆‹    " & 0 :!""ˇˇ R`xí∆‹    & 0 9!""ˇˇ"‡‚‰‰‰‰‰ÊÍÓÚÚÚÙÙÙ

@FutoRicky
FutoRicky / sendgrid_api_example.py
Last active Feb 11, 2017
API usage example using sendgrid api
View sendgrid_api_example.py
import sendgrid
from sendgrid.helpers.mail import *
sg = sendgrid.SendGridAPIClient(apikey="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")
from_email = Email("test@example.com")
subject = "Hello World from the SendGrid Python Library!"
to_email = Email("bcollazo2010@gmail.com")
content = Content("text/plain", "Hello, Email!")
mail = Mail(from_email, subject, to_email, content)
response = sg.client.mail.send.post(request_body=mail.get())
View sales_report.csv
Product Cost Sold
erat id mauris 22.3 8
elementum 535.44 1
ante 172.09 100
nibh 267.5 90
vestibulum sagittis 154.96 83
et commodo vulputate 128.99 43
odio porttitor id consequat 595.16 9
tempus vivamus 420.46 98
orci luctus et ultrices 386.85 52
View gist:0aec9c3220141ba2b9828564cb2e8519

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@FutoRicky
FutoRicky / styles.less
Created Sep 8, 2016 — forked from brandondurham/styles.less
Using Operator Mono in Atom
View styles.less
/**
* Using Operator Mono in Atom
*
* 1. Open up Atom Preferences.
* 2. Click the “Open Config Folder” button.
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up.
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden!
* 5. Tweak away.
*
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png):
@FutoRicky
FutoRicky / deploy-gh-pages.sh
Created Jun 22, 2016 — forked from chrislopresto/deploy-gh-pages.sh
Deploy Ember App to GitHub Pages
View deploy-gh-pages.sh
#!/usr/bin/env bash
git checkout master
git pull
rm -rf dist
ember build --environment production
git checkout gh-pages
git pull
View Transfer firebase app to another account.md

This is a reply received after emailing to firebase-support@google.com, which is the official firebase support email after gogle acquired firebase in late 2014.

From: firebase-support@google.com

In order to transfer ownership of a Firebase instance, we need you to do two things: add the new owner as a collaborator; then, fill in the form below and email it to us as written verification. This must be sent from the email address which owns the Firebase instance.

----------------- 
REQUEST TO TRANSFER OWNERSHIP
I authorize the Firebase team to make **<new owner’s email>** the owner of https://**<firebase instance>**.firebaseio.com effective immediately. I have added **<new owner’s email>** as a collaborator to verify the email address is correct and to certify that I am the current owner. I understand that I am effectively granting **<new owner’s email>** full read and write access to all stored data for this instance.
You can’t perform that action at this time.