Skip to content

Instantly share code, notes, and snippets.

View nitrohorse's full-sized avatar
↪️
Projects moved to https://gitlab.com/users/nitrohorse/projects

nitrohorse nitrohorse

↪️
Projects moved to https://gitlab.com/users/nitrohorse/projects
View GitHub Profile
@andrewhathaway
andrewhathaway / .bash_profile
Last active December 13, 2015 22:19
Add, commit and push function.
/*
* Commit And Push - CAP.
* Cap function to add, commit and push.
* Drop this in ~/.bash_profile
* Usage - cap 'commit message'
* - Andrew Hathaway
*/
cap() {
git add . ; /* Add all changes */
function levelOrderSearch(rootNode) {
// Check that a root node exists.
if (rootNode === null) {
return;
}
// Create our queue and push our root node into it.
var queue = [];
queue.push(rootNode);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@md2perpe
md2perpe / permutations.js
Created January 1, 2014 18:54
Function for generating permutations of a list.
function permutations(list)
{
// Empty list has one permutation
if (list.length == 0)
return [[]];
var result = [];
for (var i=0; i<list.length; i++)
@yogthos
yogthos / reddit-video.cljs
Last active January 24, 2021 21:03
a Lumo script for downloading Reddit videos using youtube-dl
#!/usr/bin/env lumo
(ns reddit-video.core
(:require
[cljs.core :refer [*command-line-args*]]
[clojure.string :as string]))
(def https (js/require "https"))
(def process (js/require "child_process"))
(defn js->edn [data]
@ndbroadbent
ndbroadbent / getTotps - show image in console.js
Last active July 23, 2021 14:02 — forked from nmurthy/getTotps.js
export authy totp codes, show QR codes in the console
/* base32 */
/*
Copyright (c) 2011, Chris Umbel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@aaronst
aaronst / unc1878_indicators.txt
Created October 28, 2020 20:20
UNC1878 Indicators
# C2 FQDNs
first seen fqdn
2019-12-11 23:37:10 updatemanagir.us
2019-12-20 17:51:05 cmdupdatewin.com
2019-12-26 18:03:27 scrservallinst.info
2020-01-10 00:33:57 winsystemupdate.com
2020-01-11 23:16:41 jomamba.best
2020-01-13 05:13:43 updatewinlsass.com
2020-01-16 11:38:53 winsysteminfo.com
2020-01-20 05:58:17 livecheckpointsrs.com
@binaryoverload
binaryoverload / AuthyToOtherAuthenticator.js
Last active September 20, 2022 21:31 — forked from JacobJohansen/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
/* base32 */
/*
Copyright (c) 2011, Chris Umbel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@telekosmos
telekosmos / uniq.js
Last active November 15, 2022 17:13
Remove duplicates from js array (ES5/ES6)
var uniqueArray = function(arrArg) {
return arrArg.filter(function(elem, pos,arr) {
return arr.indexOf(elem) == pos;
});
};
var uniqEs6 = (arrArg) => {
return arrArg.filter((elem, pos, arr) => {
return arr.indexOf(elem) == pos;
});
@burritosoftware
burritosoftware / ultimateguidetoaltstore.md
Last active December 2, 2022 09:07
The Ultimate Guide to Troubleshooting AltStore

The Ultimate Guide to Troubleshooting AltStore

Having issues with AltStore? This is the right place for you.

Wi-Fi Sideloading/Refreshing Is Not Working

  • Check that your Mac or PC and your device are connected to the same network.

  • Check that iTunes/Finder Wi-Fi Sync is turned on.

    1. Plug in your device to your computer.
    2. Launch iTunes (or Finder on Catalina and later).
  1. Select your device in the sidebar or top bar.