Skip to content

Instantly share code, notes, and snippets.

View unleashy's full-sized avatar

unleashy

  • Rio de Janeiro, Brazil
  • 18:26 (UTC -03:00)
View GitHub Profile
@rebane2001
rebane2001 / kazuma_kiryu_pfp_timestamps.txt
Created May 27, 2024 20:04
all timestamps from "Kazuma Kiryu pfp guy" comments across all fruit salad videos
[https://www.youtube.com/watch?v=UCjZiR3UsVk]
11:33
17:47
26:31
1:10:38
1:20:59
2:00:50
3:03:00
[https://www.youtube.com/watch?v=2VfxgT2b1QA]
@mastercoms
mastercoms / cvarlist_linux.txt
Last active January 31, 2020 06:39
Team Fortress 2 Linux cvarlist
http://docs.mastercomfig.com/en/latest/tf2/cvarlist_linux/
@aeshthetic
aeshthetic / geometria.cpp
Created July 28, 2017 23:59
One of the first (and ugliest) pieces of code i've ever written (not really something I'm proud of), whether it runs is beyond me.
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
//Functions
//GeoCalc Functions
float cylinderVolume(float rad, float hei){
float cylVol;
@z64
z64 / RubyOOP.md
Last active August 4, 2017 02:16
anonymous
anonymous / EscapeTheTrolls.java
Created August 2, 2016 20:47
import javax.swing.JFrame;
import asciiPanel.AsciiPanel;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.*;
import java.awt.Color;
public class EscapeTheTrolls extends JFrame implements KeyListener {
public static final int WIDTH = 39;
@iqbalhasnan
iqbalhasnan / carrierwave.rb
Last active May 25, 2023 06:06
carrierwave mini_magick image processing - quality, strip, exif rotation, gaussian blur, interlace
#config/initializers/carrierwave.rb
module CarrierWave
module MiniMagick
# Rotates the image based on the EXIF Orientation
def exif_rotation
manipulate! do |img|
img.auto_orient
img = yield(img) if block_given?
img
end
@jjb
jjb / gist:996510
Created May 28, 2011 02:00
How to set the certificate file for Net::HTTP library-wide

In my previous post I described how to securely acquire the Mozilla list of root certificates and convert them to a form usable by curl and various libraries which don't ship with them.

Next, I want to point Net:HTTP at this file library-wide, so that it is used by all invocations of methods accessing https resources (in particular, Kernel#open, which in ruby 1.8.7 does not have a ca_file option and is therefore unusable with https). I hunted around the ruby standard library for a couple hours and came up with this:

require 'open-uri'
require 'net/https'

module Net
 class HTTP