Skip to content

Instantly share code, notes, and snippets.

View momamene's full-sized avatar
🎯
Focusing

Hyuntak Joo momamene

🎯
Focusing
View GitHub Profile
@honeyedoasis
honeyedoasis / readme.md
Last active February 5, 2025 04:32
Download Weverse DM

How to use

Video tutorial: https://www.youtube.com/watch?v=GSbwYbfVE6c

Make sure your browser's download folder is empty, downloading all these media can flood your download folder with files and it'll be annoying to move later.

  1. Login weverse
  2. Open member's DM
  3. Open development console (on chrome or firefox press F12)
  4. Navigate to the console tab
@foriequal0
foriequal0 / content-clamp.user.js
Last active June 27, 2020 10:36
Contents clamp
// ==UserScript==
// @name Contents Clamp
// @updateURL https://gist.github.com/foriequal0/12794f45f5ef60249e8ba36f978dfaa4/raw/content-clamp.user.js
// @version 10
// @match http://*/*
// @match https://*/*
// @run-at document-idle
// ==/UserScript==
(function ContentsClamp(){
// SwiftUI Custom Styles (TripleToggleStyle)
// https://swiftui-lab.com
// https://swiftui-lab.com/custom-styling
import SwiftUI
// MARK: - TripleToggle View
public struct TripleToggle: View {
@Environment(\.tripleToggleStyle) var style: AnyTripleToggleStyle
@csullivan
csullivan / passthrough_notes.md
Last active May 14, 2024 12:12
QEMU/KVM GPU passthrough on 18.04 LTS notes

For blacklisting an Nvidia GTX1070 gpu on Ubuntu 18.04 with Intel integrated graphics for the host

Blacklist the nvidia driver:

sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf" 
sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

/etc/default/grub:

@superseb
superseb / cleanup.sh
Last active November 26, 2025 14:21
Cleanup host added as custom to Rancher 2.0
#!/bin/sh
# OUTDATED: please refer to the link below for the latest version:
# https://github.com/rancherlabs/support-tools/blob/master/extended-rancher-2-cleanup/extended-cleanup-rancher2.sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done
@ivan-leschinsky
ivan-leschinsky / playpause.applescript
Last active August 26, 2025 19:44
Applescript play/pause scripts for the VLC, iTunes, Spotify, Deezer
(*
-- When running each app separately
tell application "Deezer"
if it is running then
set old to (path to frontmost application as text)
tell application "Deezer"
reopen
activate
end tell
tell application "System Events" to key code 49
@yamamoto-febc
yamamoto-febc / rancher-agents.tf
Last active May 23, 2018 08:15
Rancherのホスト(エージェント)登録をTerraformで
variable "password" {
default = "PUT_YOUR_PASSWORD_HERE"
}
variable "hostname" {
default = "agent-from-terraform"
}
#Create a new Rancher registration token
resource "rancher_registration_token" "default" {
@fousa
fousa / FairPlayer.swift
Last active June 1, 2023 12:28
Integrate HLS with FairPlay.
class FairPlayer: AVPlayer {
private let queue = DispatchQueue(label: "com.icapps.fairplay.queue")
func play(asset: AVURLAsset) {
// Set the resource loader delegate to this class. The `resourceLoader`'s delegate will be
// triggered when FairPlay handling is required.
asset.resourceLoader.setDelegate(self, queue: queue)
// Load the asset in the player.
//
// PaginationNetworkLogic.swift
//
// Created by Daniel Tartaglia on 4/9/17.
// Copyright © 2019 Daniel Tartaglia. MIT License
//
import RxSwift
struct PaginationUISource {
@shagunsodhani
shagunsodhani / Learning to Generate Reviews and Discovering Sentiment.md
Last active January 30, 2020 22:27
Notes for "Learning to Generate Reviews and Discovering Sentiment" paper

Learning to Generate Reviews and Discovering Sentiment

Summary

The authors train a character-RNN (using mLSTM units) over Amazon Product Reviews (82 million reviews) and use the char-RNN as the feature extractor for sentiment analysis. These unsupervised features beat state of the art results for the dataset while are outperformed by supervised approaches on other datasets. Most important observation is that the authors find a single neuron (called as the sentiment neuron) which alone achieves a test accuracy of 92.3% thus giving the impression that the sentiment concept has been captured in that single neuron. Switching this neuron on (or off) during the generative process produces positive (or negative) reviews.

Notes

  • The paper aims to evaluate if the low level features captured by char-RNN can support learning of high-level representations.